diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-29 21:52:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:02 -0500 |
commit | b1c8e870d8340025f2cfbd6fe56c510be34bb0e1 (patch) | |
tree | b5ab0580284d6f005bd851e3a2876443664379b5 /source4/ntvfs/posix | |
parent | b97145b2a65204504593592f305211b3b27c322a (diff) | |
download | samba-b1c8e870d8340025f2cfbd6fe56c510be34bb0e1.tar.gz samba-b1c8e870d8340025f2cfbd6fe56c510be34bb0e1.tar.bz2 samba-b1c8e870d8340025f2cfbd6fe56c510be34bb0e1.zip |
r3373: added better error reporting in pvfs_open
(This used to be commit 22abdfca961a00e7c48ba4231e12f254781d315d)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r-- | source4/ntvfs/posix/pvfs_open.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index 73514f81b7..346b1420e3 100644 --- a/source4/ntvfs/posix/pvfs_open.c +++ b/source4/ntvfs/posix/pvfs_open.c @@ -27,8 +27,8 @@ create file handles with convenient numbers for sniffers */ #define PVFS_MIN_FILE_FNUM 0x100 -#define PVFS_MIN_NEW_FNUM 0x200 -#define PVFS_MIN_DIR_FNUM 0x1000 +#define PVFS_MIN_NEW_FNUM 0x200 +#define PVFS_MIN_DIR_FNUM 0x300 /* find open file handle given fnum @@ -64,8 +64,8 @@ static int pvfs_dir_fd_destructor(void *p) if (f->create_options & NTCREATEX_OPTIONS_DELETE_ON_CLOSE) { if (rmdir(f->name->full_name) != 0) { - DEBUG(0,("pvfs_close: failed to rmdir '%s'\n", - f->name->full_name)); + DEBUG(0,("pvfs_close: failed to rmdir '%s' - %s\n", + f->name->full_name, strerror(errno))); } } @@ -214,8 +214,8 @@ static int pvfs_fd_destructor(void *p) if (f->create_options & NTCREATEX_OPTIONS_DELETE_ON_CLOSE) { if (unlink(f->name->full_name) != 0) { - DEBUG(0,("pvfs_close: failed to delete '%s'\n", - f->name->full_name)); + DEBUG(0,("pvfs_close: failed to delete '%s' - %s\n", + f->name->full_name, strerror(errno))); } } |