]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, unix.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2001 13:43:46 +0000 (13:43 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2001 13:43:46 +0000 (13:43 +0000)
  unix.c (PRS): Skip validation of -C's file descriptor if it is zero,
   since that is special case.

e2fsck/ChangeLog
e2fsck/unix.c

index da16dd50c9521d813c0f25eb6e05e16df4dbb949..a9384443b8c4743135695649e53385fed2783a04 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-12  Theodore Tso  <tytso@valinux.com>
+
+       * unix.c (PRS): Skip validation of -C's file descriptor if it is
+               zero, since that is special case.
+
 2001-05-09  Theodore Tso  <tytso@valinux.com>
 
        * super.c (release_orphan_inodes): Add gettext quoting around
index 675bb903823d45b2b2d9416e431c85dffe4ffcf1..049e2737fd757dbda2a9e15d9b9ac68db1613791 100644 (file)
@@ -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) {