[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-4956-gf5e5dae
Derrell Lipman
derrell at samba.org
Sat Feb 14 14:44:32 GMT 2009
The branch, v3-3-test has been updated
via f5e5daeb8fd6133211dfbc4f4b309d5432dddb16 (commit)
via 4d2598282bb9f0c08da9f949ff23ff253c0ca7ac (commit)
from 31d854fff40799f056748333c35df81466c3614c (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit f5e5daeb8fd6133211dfbc4f4b309d5432dddb16
Author: Derrell Lipman <derrell.lipman at unwireduniverse.com>
Date: Sat Feb 14 09:43:46 2009 -0500
ignore new test program executables
commit 4d2598282bb9f0c08da9f949ff23ff253c0ca7ac
Author: Derrell Lipman <derrell.lipman at unwireduniverse.com>
Date: Sat Feb 14 09:42:59 2009 -0500
Check for the right error return value
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 2 ++
source/libsmb/libsmb_stat.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/.gitignore b/.gitignore
index edb1b3d..acaf24e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,6 +64,8 @@ examples/libsmbclient/teststat3
examples/libsmbclient/testutime
examples/libsmbclient/testwrite
examples/libsmbclient/testtruncate
+examples/libsmbclient/testfstatvfs
+examples/libsmbclient/teststatvfs
examples/libsmbclient/tree
examples/libsmbclient/Makefile.internal
source/librpc/gen_ndr/cli_krb5pac.*
diff --git a/source/libsmb/libsmb_stat.c b/source/libsmb/libsmb_stat.c
index bfcacdc..38a4441 100644
--- a/source/libsmb/libsmb_stat.c
+++ b/source/libsmb/libsmb_stat.c
@@ -323,13 +323,14 @@ SMBC_statvfs_ctx(SMBCCTX *context,
/* Is it a file or a directory? */
if (S_ISDIR(statbuf.st_mode)) {
/* It's a directory. */
- if ((pFile = SMBC_opendir_ctx(context, path)) < 0) {
+ if ((pFile = SMBC_opendir_ctx(context, path)) == NULL) {
return -1;
}
bIsDir = true;
} else if (S_ISREG(statbuf.st_mode)) {
/* It's a file. */
- if ((pFile = SMBC_open_ctx(context, path, O_RDONLY, 0)) < 0) {
+ if ((pFile = SMBC_open_ctx(context, path,
+ O_RDONLY, 0)) == NULL) {
return -1;
}
bIsDir = false;
--
Samba Shared Repository
More information about the samba-cvs
mailing list