diff options
author | obrien <obrien@FreeBSD.org> | 2001-09-02 18:13:17 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-09-02 18:13:17 +0000 |
commit | f32306f7e22fe019f0c4c28ceb1a10c36384899f (patch) | |
tree | b60a2f47493382fc52c4b26562233bb836d2f107 /contrib/amd | |
parent | c86b5450b5281b42948762d1b5beda361aefd2ec (diff) | |
download | FreeBSD-src-f32306f7e22fe019f0c4c28ceb1a10c36384899f.zip FreeBSD-src-f32306f7e22fe019f0c4c28ceb1a10c36384899f.tar.gz |
Merge rev 1.7 (mount directory change) into Am-utils 6.0.7.
Diffstat (limited to 'contrib/amd')
-rw-r--r-- | contrib/amd/amd/amd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/amd/amd/amd.c b/contrib/amd/amd/amd.c index a89d8d4..1ad6d0a 100644 --- a/contrib/amd/amd/amd.c +++ b/contrib/amd/amd/amd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997-1999 Erez Zadok + * Copyright (c) 1997-2001 Erez Zadok * Copyright (c) 1989 Jan-Simon Pendry * Copyright (c) 1989 Imperial College of Science, Technology & Medicine * Copyright (c) 1989 The Regents of the University of California. @@ -38,7 +38,7 @@ * * %W% (Berkeley) %G% * - * $Id: amd.c,v 1.6 1999/09/30 21:01:29 ezk Exp $ + * $Id: amd.c,v 1.8.2.3 2001/01/10 03:22:59 ezk Exp $ * $FreeBSD$ * */ @@ -178,8 +178,8 @@ daemon_mode(void) if (gopt.flags & CFM_PRINT_PID) { if (STREQ(gopt.pid_file, "/dev/stdout")) { printf("%ld\n", (long) am_mypid); + /* flush stdout, just in case */ fflush(stdout); - /* do not fclose stdout */ } else { FILE *f; mode_t prev_umask = umask(0022); /* set secure temporary umask */ @@ -477,7 +477,7 @@ main(int argc, char *argv[]) verstr = strtok(get_version_string(), "\n"); plog(XLOG_INFO, "AM-UTILS VERSION INFORMATION:"); while (verstr) { - plog(XLOG_INFO, verstr); + plog(XLOG_INFO, "%s", verstr); verstr = strtok(NULL, "\n"); } |