Mercurial > dropbear
diff scpmisc.c @ 303:b27fcd28f9dc ucc-axis-hack
printf not fprintf for scp stuff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 13:35:44 +0000 |
parents | 973fccb59ea4 |
children |
line wrap: on
line diff
--- a/scpmisc.c Sat Mar 25 12:59:58 2006 +0000 +++ b/scpmisc.c Sat Mar 25 13:35:44 2006 +0000 @@ -220,7 +220,7 @@ { va_list args; va_start(args, fmt); - vfprintf(stderr, fmt, args); + vprintf( fmt, args); va_end(args); exit(255); } @@ -231,7 +231,7 @@ int nullfd, dupfd; if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { - fprintf(stderr, "Couldn't open /dev/null: %s", strerror(errno)); + printf( "Couldn't open /dev/null: %s", strerror(errno)); exit(1); } while (++dupfd <= 2) { @@ -239,7 +239,7 @@ if (fcntl(dupfd, F_GETFL, 0) >= 0) continue; if (dup2(nullfd, dupfd) == -1) { - fprintf(stderr, "dup2: %s", strerror(errno)); + printf( "dup2: %s", strerror(errno)); exit(1); } }