Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd ut_line does not have /dev in front of it. ...
details: https://anonhg.NetBSD.org/src/rev/ba72e3ee343b
branches: trunk
changeset: 784077:ba72e3ee343b
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 17 18:54:28 2013 +0000
description:
ut_line does not have /dev in front of it. Add it, from dholland@
diffstat:
usr.sbin/syslogd/syslogd.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 512d4e6a868b -r ba72e3ee343b usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Thu Jan 17 18:33:58 2013 +0000
+++ b/usr.sbin/syslogd/syslogd.c Thu Jan 17 18:54:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.113 2013/01/15 22:37:04 christos Exp $ */
+/* $NetBSD: syslogd.c,v 1.114 2013/01/17 18:54:28 christos Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.113 2013/01/15 22:37:04 christos Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.114 2013/01/17 18:54:28 christos Exp $");
#endif
#endif /* not lint */
@@ -2563,8 +2563,10 @@
break;
if (strcmp(f->f_un.f_uname[i], ep->name) == 0) {
struct stat st;
-
- if (stat(ep->line, &st) != -1 &&
+ char tty[MAXPATHLEN];
+ snprintf(tty, sizeof(tty), "%s/%s", _PATH_DEV,
+ ep->line);
+ if (stat(tty, &st) != -1 &&
(st.st_mode & S_IWGRP) == 0)
break;
Home |
Main Index |
Thread Index |
Old Index