diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:46 -0700 |
| commit | dd787c19c4f011cc3adb422ef856f2c58d989640 (patch) | |
| tree | 1b8fdfb2e14cc423a31ab1ce75c6f05226483da6 /shell.c | |
| parent | Merge branch 'cb/maint-fetch-refspec-wo-dst' (diff) | |
| parent | Use die_errno() instead of die() when checking syscalls (diff) | |
| download | git-dd787c19c4f011cc3adb422ef856f2c58d989640.tar.gz git-dd787c19c4f011cc3adb422ef856f2c58d989640.zip | |
Merge branch 'tr/die_errno'
* tr/die_errno:
Use die_errno() instead of die() when checking syscalls
Convert existing die(..., strerror(errno)) to die_errno()
die_errno(): double % in strerror() output just in case
Introduce die_errno() that appends strerror(errno) to die()
Diffstat (limited to 'shell.c')
| -rw-r--r-- | shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ int main(int argc, char **argv) while (devnull_fd >= 0 && devnull_fd <= 2) devnull_fd = dup(devnull_fd); if (devnull_fd == -1) - die("opening /dev/null failed (%s)", strerror(errno)); + die_errno("opening /dev/null failed"); close (devnull_fd); /* |
