summaryrefslogtreecommitdiff
path: root/libexec/mail.local/locking.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-17 23:16:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-17 23:16:10 +0000
commit6ec21138db1d54163435787589797ecc2f6a578b (patch)
tree424610312a8e7b24543b050869f7996436ff5044 /libexec/mail.local/locking.c
parentb569c5852f5e4f0aa2ddc260601cd6dfad2c2c91 (diff)
Call S_ISLNK with correct variable; Peter Philipp
Diffstat (limited to 'libexec/mail.local/locking.c')
-rw-r--r--libexec/mail.local/locking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/mail.local/locking.c b/libexec/mail.local/locking.c
index 39b1fd2d12f..0a5fe5d25ba 100644
--- a/libexec/mail.local/locking.c
+++ b/libexec/mail.local/locking.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locking.c,v 1.3 2001/08/18 21:37:38 deraadt Exp $ */
+/* $OpenBSD: locking.c,v 1.4 2002/02/17 23:16:09 millert Exp $ */
/*
* Copyright (c) 1996-1998 Theo de Raadt <deraadt@theos.com>
@@ -29,7 +29,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: locking.c,v 1.3 2001/08/18 21:37:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: locking.c,v 1.4 2002/02/17 23:16:09 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -87,7 +87,7 @@ getlock(name, pw)
*/
if (readlink(lpath, buf, sizeof buf-1) != -1) {
if (lstat(lpath, &sb) != -1 &&
- S_ISLNK(fsb.st_mode)) {
+ S_ISLNK(sb.st_mode)) {
seteuid(sb.st_uid);
unlink(lpath);
seteuid(pw->pw_uid);