Our use of `git rev-parse --git-dir' depends on our (v)fork+exec
wrapper doing chdir, so the error message is required to avoid
user confusion. I'm still avoiding `git -C $DIR' for now since
ancient versions of git did not support it.
exit_err("setpgid", &cerrnum);
for (sig = 1; sig < NSIG; sig++)
signal(sig, SIG_DFL); /* ignore errors on signals */
- if (*cd && chdir(cd) < 0)
- exit_err("chdir", &cerrnum);
+ if (*cd && chdir(cd) < 0) {
+ write(2, "cd ", 3);
+ exit_err(cd, &cerrnum);
+ }
max_rlim = av_len(rlim);
for (i = 0; i < max_rlim; i += 3) {
}
$SIG{$_} = 'DEFAULT' for grep(!/\A__/, keys %SIG);
if ($cd ne '') {
- chdir $cd or die "chdir $cd: $!";
+ chdir $cd or die "cd $cd: $!";
}
while (@$rlim) {
my ($r, $soft, $hard) = splice(@$rlim, 0, 3);