diff options
| author | Garance A Drosehn <gad@FreeBSD.org> | 2001-10-09 00:38:40 +0000 |
|---|---|---|
| committer | Garance A Drosehn <gad@FreeBSD.org> | 2001-10-09 00:38:40 +0000 |
| commit | ce0b09c3bc1e4e363e7fa92206de9ec6f9a8599d (patch) | |
| tree | f0c61252ec931692aeb2bb12fee0785e83b7eae0 | |
| parent | 9e75a09e74b13275b82a70f1f32996f6bc016105 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/lpr/lpr/lpr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 9b7fc160864d..36b8c5779891 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -496,11 +496,11 @@ main(int argc, char *argv[]) */ seteuid(euid); if ((tfd = open(tfname, O_RDWR)) >= 0) { - char c; + char touch_c; - if (read(tfd, &c, 1) == 1 && + if (read(tfd, &touch_c, 1) == 1 && lseek(tfd, (off_t)0, 0) == 0 && - write(tfd, &c, 1) != 1) { + write(tfd, &touch_c, 1) != 1) { printf("%s: cannot touch %s\n", progname, tfname); tfname[inchar]++; |
