summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-21 22:41:06 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-21 22:41:06 +0000
commita71785576512bf42f38523d28428830d5c50c928 (patch)
tree99b1159cdb3f6fd85c67bcbd27f66b123128d6ce /mdk-stage1
parent4582b113110b605ea165abf1ff163dfddafe64a5 (diff)
downloaddrakx-a71785576512bf42f38523d28428830d5c50c928.tar
drakx-a71785576512bf42f38523d28428830d5c50c928.tar.gz
drakx-a71785576512bf42f38523d28428830d5c50c928.tar.bz2
drakx-a71785576512bf42f38523d28428830d5c50c928.tar.xz
drakx-a71785576512bf42f38523d28428830d5c50c928.zip
fix remaining perror's
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/nfsmount.c8
-rw-r--r--mdk-stage1/stage1.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/nfsmount.c b/mdk-stage1/nfsmount.c
index b6cdb22c9..d980860a2 100644
--- a/mdk-stage1/nfsmount.c
+++ b/mdk-stage1/nfsmount.c
@@ -219,10 +219,10 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
total_timeout);
if (clnt_stat != RPC_SUCCESS) {
if (errno != ECONNREFUSED) {
- clnt_perror(mclient, "mount");
+ log_message(clnt_sperror(mclient, "mount"));
goto fail; /* don't retry */
}
- clnt_perror(mclient, "mount");
+ log_message(clnt_sperror(mclient, "mount"));
auth_destroy(mclient->cl_auth);
clnt_destroy(mclient);
mclient = 0;
@@ -242,11 +242,11 @@ int nfsmount_prepare(const char *spec, int *flags, char **mount_opts)
fsock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (fsock < 0) {
- perror("nfs socket");
+ log_perror("nfs socket");
goto fail;
}
if (bindresvport(fsock, 0) < 0) {
- perror("nfs bindresvport");
+ log_perror("nfs bindresvport");
goto fail;
}
server_addr.sin_port = PMAPPORT;
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 4c7b5e174..8154b9286 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -101,7 +101,7 @@ static void spawn_shell(void)
close(fd);
setsid();
if (ioctl(0, TIOCSCTTY, NULL))
- perror("could not set new controlling tty");
+ log_perror("could not set new controlling tty");
execl(shell_name, shell_name, NULL);
log_message("execl of %s failed: %s", shell_name, strerror(errno));