diff options
author | 2014-01-20 19:52:45 +0000 | |
---|---|---|
committer | 2014-01-20 19:52:45 +0000 | |
commit | d7a50ec62f015106d12f2fbcf0f307d872c2d555 (patch) | |
tree | 5ea5da7040d9b8fa5251e92fa8b469071baf3aa3 | |
parent | Fix race condition during symlink check. If there was no symbolic link (diff) | |
download | wireguard-openbsd-d7a50ec62f015106d12f2fbcf0f307d872c2d555.tar.xz wireguard-openbsd-d7a50ec62f015106d12f2fbcf0f307d872c2d555.zip |
Use SEEK_SET instead of hardcoded 0.
ok millert@
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 8c70e66db09..cfbea5ba777 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printjob.c,v 1.50 2014/01/20 19:51:46 tobias Exp $ */ +/* $OpenBSD: printjob.c,v 1.51 2014/01/20 19:52:45 tobias Exp $ */ /* $NetBSD: printjob.c,v 1.31 2002/01/21 14:42:30 wiz Exp $ */ /* @@ -229,7 +229,7 @@ again: fdev = (dev_t)-1; fino = (ino_t)-1; - (void)lseek(lfd, pidoff, 0); + (void)lseek(lfd, pidoff, SEEK_SET); if ((i = snprintf(line, sizeof(line), "%s\n", q->q_name)) >= sizeof(line) || i == -1) i = sizeof(line) - 1; /* can't happen */ |