From: Theodore Ts'o Date: Sat, 12 May 2001 13:43:46 +0000 (+0000) Subject: ChangeLog, unix.c: X-Git-Tag: E2FSPROGS-1_20~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc9a69ca37cb5b4f77a9cfcd0f4458a981208c5d;p=thirdparty%2Fe2fsprogs.git ChangeLog, unix.c: unix.c (PRS): Skip validation of -C's file descriptor if it is zero, since that is special case. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index da16dd50c..a9384443b 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2001-05-12 Theodore Tso + + * unix.c (PRS): Skip validation of -C's file descriptor if it is + zero, since that is special case. + 2001-05-09 Theodore Tso * super.c (release_orphan_inodes): Add gettext quoting around diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 675bb9038..049e2737f 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -483,6 +483,8 @@ static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx) case 'C': ctx->progress = e2fsck_update_progress; ctx->progress_fd = atoi(optarg); + if (!ctx->progress_fd) + break; /* Validate the file descriptor to avoid disasters */ fd = dup(ctx->progress_fd); if (fd < 0) {