Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/smbfs/mount_smbfs print also the description of error i...



details:   https://anonhg.NetBSD.org/src/rev/43f318d4aa6b
branches:  trunk
changeset: 543389:43f318d4aa6b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Feb 24 09:13:08 2003 +0000

description:
print also the description of error if mount(2) fails

diffstat:

 dist/smbfs/mount_smbfs/mount_smbfs.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 04329100f141 -r 43f318d4aa6b dist/smbfs/mount_smbfs/mount_smbfs.c
--- a/dist/smbfs/mount_smbfs/mount_smbfs.c      Mon Feb 24 08:48:17 2003 +0000
+++ b/dist/smbfs/mount_smbfs/mount_smbfs.c      Mon Feb 24 09:13:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_smbfs.c,v 1.4 2003/02/23 22:31:18 jdolecek Exp $ */
+/* $NetBSD: mount_smbfs.c,v 1.5 2003/02/24 09:13:08 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2000-2002, Boris Popov
@@ -237,7 +237,8 @@
        error = mount(SMBFS_VFSNAME, mount_point, mntflags, (void*)&mdata);
        smb_ctx_done(ctx);
        if (error) {
-               smb_error("mount error: %s", error, mount_point);
+               smb_error("mount error for %s: %s", error, mount_point,
+                       strerror(errno));
                exit(1);
        }
        return 0;



Home | Main Index | Thread Index | Old Index