From: Andre Noll Date: Sun, 16 Apr 2017 10:01:42 +0000 (+0200) Subject: run: Improve error diagnostics for chdir(2) failure. X-Git-Tag: v1.0.0~25^2~5 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=2d10a72798da5489363088dfbe02ccbc5942cfcd;hp=2d10a72798da5489363088dfbe02ccbc5942cfcd;p=dss.git run: Improve error diagnostics for chdir(2) failure. In run mode, if the destination directory does not exist, dss prints "No such file or directory" and exits, without telling the user (a) it was a failed chdir(2) call that caused the error, and (b) the name of the directory. This patch adds an error message containing this information. Since there is only one caller of dss_chdir(), let's get rid of this public function in file.c and call chdir() directly from change_to_dest_dir() of dss.c. ---