diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2011-03-03 15:06:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2011-03-03 15:06:44 +0000 |
commit | bebcfdfbe36b040bac029d81372fc92e34bdaf6c (patch) | |
tree | c20a303d53b97947d44c5ca0007610c9cda796c7 | |
parent | a0b7138a6a41ef1f327b63ad10f82bbb145f67b5 (diff) |
Use dirfd() instead of peeking into struct dirent for dd_fd, which is
non-standard.
-rw-r--r-- | usr.bin/at/at.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 0a7f3ac47a4..57ea79de6b5 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -1,4 +1,4 @@ -/* $OpenBSD: at.c,v 1.57 2010/07/02 23:40:09 krw Exp $ */ +/* $OpenBSD: at.c,v 1.58 2011/03/03 15:06:43 millert Exp $ */ /* * at.c : Put file into atrun queue @@ -505,7 +505,7 @@ list_jobs(int argc, char **argv, int count_only, int csort) PRIV_END; - if (fstat(spool->dd_fd, &stbuf) != 0) + if (fstat(dirfd(spool), &stbuf) != 0) perr2("Cannot stat ", AT_DIR); /* |