]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Use global errno instead of local error for strerror param. Oops.
authorTim Shimmin <tes@sgi.com>
Mon, 28 Nov 2005 14:00:47 +0000 (14:00 +0000)
committerTim Shimmin <tes@sgi.com>
Mon, 28 Nov 2005 14:00:47 +0000 (14:00 +0000)
Merge of master-melb:xfs-cmds:24589a by kenmcd.

  Use global errno instead of local error for strerror param. Oops.

io/parent.c

index bc077a088aca5d93dbcfe3c0439b76fd0b78e3c9..a34c00a641711420cc1c496075529fceb7f376e4 100644 (file)
@@ -138,7 +138,7 @@ check_parents(parent_t *parentbuf, jdm_fshandle_t *fshandlep, xfs_bstat_t *statp
                if (error) {
                        fprintf(stderr, _("getparentpaths failed for ino %llu: %s\n"),
                                statp->bs_ino,
-                               strerror(error));
+                               strerror(errno));
                        err_status++;
                        break;
                }
@@ -173,7 +173,7 @@ do_bulkstat(parent_t *parentbuf, xfs_bstat_t *bstatbuf,
 
        if ((error = stat(mntpt, &mntstat))) {
                fprintf(stderr, _("can't stat mount point \"%s\": %s\n"),
-                       mntpt, strerror(error));
+                       mntpt, strerror(errno));
                return 1;
        }