summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-02-03 08:56:17 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-02-03 08:56:17 +0000
commitb7b51cfad89d293be01ca82783dc23e851940dfd (patch)
tree054559a6a6b19bc4d657ac6b4c3341854380eccf /usr.bin
parentf56ac923128dcead47b9915fb316606e7188f3e5 (diff)
don't call error() for readonly /dev; from soekris list; ok mcbride,
henning, deraadt.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshpty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c
index 8450f7719a8..39dc554d847 100644
--- a/usr.bin/ssh/sshpty.c
+++ b/usr.bin/ssh/sshpty.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshpty.c,v 1.7 2002/06/24 17:57:20 deraadt Exp $");
+RCSID("$OpenBSD: sshpty.c,v 1.8 2003/02/03 08:56:16 markus Exp $");
#include <util.h>
#include "sshpty.h"
@@ -275,7 +275,7 @@ pty_setowner(struct passwd *pw, const char *ttyname)
if (chown(ttyname, pw->pw_uid, gid) < 0) {
if (errno == EROFS &&
(st.st_uid == pw->pw_uid || st.st_uid == 0))
- error("chown(%.100s, %u, %u) failed: %.100s",
+ debug("chown(%.100s, %u, %u) failed: %.100s",
ttyname, (u_int)pw->pw_uid, (u_int)gid,
strerror(errno));
else
@@ -289,7 +289,7 @@ pty_setowner(struct passwd *pw, const char *ttyname)
if (chmod(ttyname, mode) < 0) {
if (errno == EROFS &&
(st.st_mode & (S_IRGRP | S_IROTH)) == 0)
- error("chmod(%.100s, 0%o) failed: %.100s",
+ debug("chmod(%.100s, 0%o) failed: %.100s",
ttyname, mode, strerror(errno));
else
fatal("chmod(%.100s, 0%o) failed: %.100s",