diff options
author | tjr <tjr@FreeBSD.org> | 2004-09-05 06:42:51 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-09-05 06:42:51 +0000 |
commit | 24d8f8ddcef45b252500e769bda933ecd4c7c30f (patch) | |
tree | a43450866e88712a16154d51ce4332e7d071f58e /contrib | |
parent | 937dc493cf59690c5d978fe72209e62b997a83c5 (diff) | |
download | FreeBSD-src-24d8f8ddcef45b252500e769bda933ecd4c7c30f.zip FreeBSD-src-24d8f8ddcef45b252500e769bda933ecd4c7c30f.tar.gz |
Correctly check the return value of kldload() to determine whether an
error occurred.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/smbfs/mount_smbfs/mount_smbfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c index 2ba41f0..487e9cd 100644 --- a/contrib/smbfs/mount_smbfs/mount_smbfs.c +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c @@ -103,7 +103,7 @@ main(int argc, char *argv[]) #else error = getvfsbyname(SMBFS_VFSNAME, &vfc); if (error) { - if (kldload(SMBFS_VFSNAME)) + if (kldload(SMBFS_VFSNAME) < 0) err(EX_OSERR, "kldload("SMBFS_VFSNAME")"); error = getvfsbyname(SMBFS_VFSNAME, &vfc); } |