From: Todd C. Miller Date: Tue, 7 Sep 2004 18:04:48 +0000 (+0000) Subject: If path is NULL and fd == -1 return -1. X-Git-Tag: SUDO_1_6_8p1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b243b0ad33bbe5ff32442b5ade181e6235f3ce5e;p=sudo If path is NULL and fd == -1 return -1. --- diff --git a/fileops.c b/fileops.c index 4ce877fe5..643de5da3 100644 --- a/fileops.c +++ b/fileops.c @@ -58,7 +58,10 @@ touch(fd, path, when) return(futimes(fd, times)); else #endif + if (path != NULL) return(utimes(path, times)); + else + return(-1); } /*