1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

36 Commits

Author SHA1 Message Date
Jeremy Allison
a238144c6e Coverity fix #CID: 607 - resource leak on error path.
Jeremy.
2008-10-29 15:55:45 -07:00
Volker Lendecke
01ecd766c8 OS/X does not have rl_done in readline.h 2008-10-05 13:22:08 +02:00
Jeremy Allison
a9390d3047 Correctly fix smbclient to terminate on eof from server.
Jeremy.
2008-10-03 14:58:41 -07:00
Jeremy Allison
1b92ea5559 Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a)
2007-12-06 17:16:33 -08:00
Michael Adam
b3976c2ea2 Fix an implicit cast warning.
Michael
(This used to be commit d2c7417393)
2007-11-16 22:22:05 +01:00
Jeremy Allison
68be9a8200 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac8014)
2007-11-15 14:19:52 -08:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Stefan Metzmacher
f9f3a2d790 r19246: merge from samba4 rev 18207 and 18208:
readline fixes for mac os 10

metze
(This used to be commit 976b97ecbf)
2007-10-10 12:15:25 -05:00
James Peach
06491a4cb1 r16274: Fix the smbclient prompting behaviour for both systems that have
libreadline and those that don't. We always use the built-in readline
replacement for non-interactive mode. Interactive prompts are always
emitted to stdout and non-interactive mode never prompts at all.

Introduce x_fdup to avoid spuriously closing stdout when a logfile is
specified on the command line and setup_logging is called a second time.
(This used to be commit 848ac756f6)
2007-10-10 11:17:30 -05:00
Gerald Carter
0af1500fc0 r13316: Let the carnage begin....
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed)
2007-10-10 11:06:23 -05:00
Volker Lendecke
268a3593ad Apply some const
(This used to be commit 502b45b55d)
2003-08-11 19:11:43 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978)
2003-05-12 18:12:31 +00:00
Andrew Bartlett
8f166a9725 merge from HEAD - x_fileno, not fileno on an XFILE
(This used to be commit e3468d8edc)
2003-02-08 01:01:49 +00:00
Andrew Bartlett
b36a53b0cb Merge from HEAD - don't mix FILE and X_FILE - fixes debian bug
http://bugs.debian.org/178219 where the first 4096 bytes where being chewed
into the FILE buffer, and never available to X_FILE's read.

Andrew Bartlett
(This used to be commit 8af72c1384)
2003-02-08 00:08:23 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273b)
2002-09-25 15:19:00 +00:00
Jeremy Allison
69adbb0ce3 Fix from Michael Steffens <michael_steffens@hp.com> to make signal
processing work correctly in winbindd. This is a really good patch
that gives full select semantics to the Samba modified select.
Jeremy.
(This used to be commit 3af16ade17)
2002-01-31 23:26:12 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06)
2002-01-30 06:08:46 +00:00
Jeremy Allison
74462c0c17 Readline has problems on non tty fd's. Use readline replacement to in cases
where stdin is !isatty to allow stripts to work.
Jeremy.
(This used to be commit 997d6687fc)
2002-01-19 22:54:13 +00:00
Martin Pool
94ad8127f5 Fix typo.
(This used to be commit 2c1e68d4ce)
2001-11-19 07:39:35 +00:00
Martin Pool
b99209cce4 Detect libreadline>=4.0, and set HAVE_NEW_LIBREADLINE. At the moment
this is only to get the cast right, but it might help with other parts
of the API that changed later.
(This used to be commit b792c9317a)
2001-11-19 04:18:45 +00:00
Tim Potter
d173bf7049 Added comment about why not to cast the assignment of
rl_attempted_completion_function to rl_completion_function_t.
(This used to be commit dfaafcd622)
2001-11-19 03:44:19 +00:00
Martin Pool
4ea31fb675 Oops, Tim says rl_completion_func_t doesn't exist in all versions of
readline.
(This used to be commit c4b44cfc3f)
2001-11-19 03:34:45 +00:00
Martin Pool
eb2bf006ac Quieten compiler warnings about a callback function prototype that has
changed in recent versions of Readline.
(This used to be commit d0a0d27caa)
2001-11-19 03:11:28 +00:00
Simo Sorce
52341e94a8 initial support to error report in smbclient, useful when using smbclient -c in scripts.
Thanks to Claudio Cicali aka FleXer for the initial patch
(This used to be commit 53b95b3c0f)
2001-10-09 19:12:18 +00:00
Gerald Carter
59681e1655 merge from 2.2
(This used to be commit c308459bda)
2001-09-30 01:33:02 +00:00
Andrew Tridgell
b12a4dd9b6 declare dbf in one spot
(This used to be commit f41c3bb80f)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
b30e75692d replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems

I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
(This used to be commit 1af8bf34f1)
2001-09-10 11:08:57 +00:00
Tim Potter
f905c74d9a ^$&%&*$&)% readline uses \n characters instead of letting the terminal wrap
the screen.  This mucks up expect something severe.  )-:

Don't use readline if the CLI_NO_READLINE environment variable is set.
(This used to be commit f0b7593ef5)
2001-07-20 07:46:39 +00:00
Tim Potter
3762d48404 Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b)
2001-05-07 02:03:32 +00:00
Tim Potter
3bb92410a4 Fixed compiler warning.
(This used to be commit 063c2dea92)
2001-05-07 01:08:41 +00:00
Andrew Tridgell
62711a9ceb fixed rpcclient readline code
(This used to be commit 4ec971e905)
2001-03-19 00:32:16 +00:00
Andrew Tridgell
e17e7b6417 added basic command completion support
(This used to be commit 386fdff2df)
2001-03-19 00:22:52 +00:00
Andrew Tridgell
bc25293f96 much simpler readline code
should work with readline 2.x
(This used to be commit 7940b6b0cf)
2001-03-18 23:41:53 +00:00
Andrew Tridgell
9c4927d362 much better readline support from Simo Sorce, with some mods from me
to make it a bit simpler
(This used to be commit e1487eb2c4)
2001-03-18 13:24:57 +00:00