Displaying 5 results from an estimated 5 matches for "close_our_files".
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...closed) {
- extern FILE *dbf;
+ /* redirect stdout & stderr since we can't know that
+ the "library" functions we use are using DEBUG. */
+ if ( (fd = open("/dev/null", O_WRONLY)) < 0)
+ DEBUG(2,("mount.smbfs: can't open /dev/null\n"));
+ close_our_files(fd);
+ if (fd >= 0) {
+ dup2(fd, STDOUT_FILENO);
+ dup2(fd, STDERR_FILENO);
+ close(fd);
+ }
+
+ /* here we are no longer interactive */
+ pstrcpy(remote_machine, "smbmount"); /* sneaky ... */
+ setup_logging("mount.smbfs",False);
+ reopen_logs();
+
c...
1999 May 19
1
make fails for 2.0.3
Hi all,
I'm trying to build 2.0.3 and make gives me the following error:
Compiling client/smbmount.c
client/smbmount.c: In function `close_our_files':
client/smbmount.c:242: `NR_OPEN' undeclared (first use in this function)
client/smbmount.c:242: (Each undeclared identifier is reported only once
client/smbmount.c:242: for each function it appears in.)
make: *** [client/smbmount.o] Error 1
My system config is:
OS...
1999 Jun 10
0
2.0.4b: configure --with-smbmount -> ERROR
...ba2.spec to add
1) --with-smbmount to configure
2) the smbmount related files and man pages to the install and files sections.
rpm -ba samba2.spec stops with:
.....
Compiling smbd/ssl.c with -fpic
Linking shared library bin/smbwrapper.so
Compiling client/smbmount.c
client/smbmount.c: In function `close_our_files':
client/smbmount.c:242: `NR_OPEN' undeclared (first use in this function)
client/smbmount.c:242: (Each undeclared identifier is reported only once
client/smbmount.c:242: for each function it appears in.)
make: *** [client/smbmount.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.83820 (%bu...
1999 Jun 20
2
newbie: where and how to use smbmount with 2.04b ?
Fellow Samba-ists,
I read about smbmount
But I cannot find it in 2.04b
Where and how do I use it ?
Regards
Terence
2000 Jun 13
1
a bug in smbmount
...it.
I offer the patch which i tested and it worked for me,
but i am not an expireenced programmer:
---------------------------------------------------------------
--- smbmount.c.ORIG Thu Nov 11 00:00:00 1999
+++ smbmount.c Tue Jun 13 14:00:23 2000
@@ -342,7 +342,7 @@
close_our_files(c?c->fd:-1);
}
#endif
-
+failed:
/* Wait for a signal from smbfs ... */
CatchSignal(SIGUSR1, &usr1_handler);
pause();
@@ -350,6 +350,7 @@
DEBUG(2,("mount.smbfs: got signal, getting new socket\n"));
#e...