diff options
author | mckusick <mckusick@FreeBSD.org> | 2008-05-23 19:17:08 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2008-05-23 19:17:08 +0000 |
commit | 4fec854134d05ad6afbb661237371770bc2bbd7e (patch) | |
tree | b44788b00129c394fad171e342bcb7316c340bf6 /sbin | |
parent | b606eaa9b7505bbed2accafa8ecff3424ebaa912 (diff) | |
download | FreeBSD-src-4fec854134d05ad6afbb661237371770bc2bbd7e.zip FreeBSD-src-4fec854134d05ad6afbb661237371770bc2bbd7e.tar.gz |
Fix nits pointed out in PR bin/39905 that have not already been
corrected since it was filed. With this change the PR will be closed.
PR: bin/39905
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/restore/dirs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c index 2f796cb..91bdcd4 100644 --- a/sbin/restore/dirs.c +++ b/sbin/restore/dirs.c @@ -139,7 +139,7 @@ extractdirs(int genmode) vprintf(stdout, "Extract directories from tape\n"); if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') tmpdir = _PATH_TMP; - (void) sprintf(dirfile, "%s/rstdir%d", tmpdir, dumpdate); + (void) sprintf(dirfile, "%s/rstdir%ld", tmpdir, dumpdate); if (command != 'r' && command != 'R') { (void *) strcat(dirfile, "-XXXXXX"); fd = mkstemp(dirfile); @@ -152,7 +152,7 @@ extractdirs(int genmode) done(1); } if (genmode != 0) { - (void) sprintf(modefile, "%s/rstmode%d", tmpdir, dumpdate); + (void) sprintf(modefile, "%s/rstmode%ld", tmpdir, dumpdate); if (command != 'r' && command != 'R') { (void *) strcat(modefile, "-XXXXXX"); fd = mkstemp(modefile); @@ -566,7 +566,7 @@ setdirmodes(int flags) if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') tmpdir = _PATH_TMP; if (command == 'r' || command == 'R') - (void) sprintf(modefile, "%s/rstmode%d", tmpdir, dumpdate); + (void) sprintf(modefile, "%s/rstmode%ld", tmpdir, dumpdate); if (modefile[0] == '#') { panic("modefile not defined\n"); fprintf(stderr, "directory mode, owner, and times not set\n"); |