Commit Graph

622 Commits

Author SHA1 Message Date
Andrew V. Samoilov c29498db11 * smbfs.c (myumask): Removed. It is only written and never read.
(smbfs_init): Use PATH_SEP_STR and reformat.
2002-08-06 06:02:52 +00:00
Andrew V. Samoilov 03631a70f1 * (process_exists): Removed.
* (became_daemon): Removed.
* (yesno): Removed.
2002-08-02 08:32:14 +00:00
Pavel Roskin d5efb60c84 Remove all references to MAD. 2002-08-01 20:03:21 +00:00
Pavel Roskin c0d6dec814 * mcserv.c: Remove all references to MAD.
* vfs.c: Likewise.
2002-08-01 19:48:21 +00:00
Andrew V. Samoilov 8f8add60bb * samba/lib/util.c (reg_split_key): Ditto.
(reg_get_subkey): Ditto.
2002-07-31 13:52:04 +00:00
Andrew V. Samoilov 134fd952bf Add nmfns.txt and nmused.txt 2002-07-31 12:04:32 +00:00
Andrew V. Samoilov 7e6893ed6c (cli_printjob_del): Commented out.
(cli_print_queue): Ditto.
* samba/lib/system.c (sys_waitpid): Ditto.
2002-07-31 12:03:02 +00:00
Andrew V. Samoilov 423e57ef8d * samba/libsmb/clientgen.c (cli_send_tconX): Add missed
unix_to_dos() call.
2002-07-31 11:41:16 +00:00
Andrew V. Samoilov 3e982cf3fc * samba/configure.in: Don't check for union semun.
* samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
declare union semun.
2002-07-29 15:19:36 +00:00
Pavel Roskin e66ab47cf1 * direntry.c (vfs_s_find_entry_linear): Canonicalize path before searching 2002-07-26 21:58:43 +00:00
Andrew V. Samoilov 6bd685bd7c * xdirentry.h (vfs_s_fh.u.fish): Add append field.
* fish.c (fish_fh_open): Care about append.
(linear_open): Likewise.
(fish_store): Append data to target file if append is true.
2002-07-26 01:33:40 +00:00
Andrew V. Samoilov 3dc53f9d41 * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
file to fix compilation.
(main): Add mad_init() and mad_finalize().
2002-07-25 20:33:31 +00:00
Pavel Roskin 2be225d9e0 * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
* fish.c: Likewise.
(dir_load): Update SUP.cwdir.
* xdirentry.h: Remove "home" field for fish and ftpfs.
2002-07-19 16:36:32 +00:00
Pavel Roskin 982a256ee0 * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
2002-07-19 16:04:27 +00:00
Pavel Roskin 87e4797648 Warning fix in the previous commit. 2002-07-19 15:11:20 +00:00
Pavel Roskin b68a8a5ca8 * fish.c (fish_fill_names): New function, replacement for
generic vfs_s_fill_names() which didn't work right with fish.
2002-07-19 05:29:31 +00:00
Pavel Roskin 0b4a33c10f * undelfs.c (undelfs_opendir): Use parametrized messages without
VFS name for success and failure.
* fish.c (dir_load): Use new messages from undelfs.c, indicate
success by printing "done".
* ftpfs.c (dir_load): Likewise.
2002-07-19 04:29:37 +00:00
Pavel Roskin 82009e2ab0 * cpio.c (cpio_read_crc_head): Undo change in the error message. 2002-07-15 16:16:26 +00:00
Pavel Roskin 7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* smbfs.c: Likewise.
* tar.c: Likewise.
2002-07-15 05:31:43 +00:00
Pavel Roskin 1517700adf * fish.c (open_archive_int): Don't combine "export" and
assignment into one command - it's not portable.  Set LC_TIME
to "C" as well.
2002-07-14 22:56:13 +00:00
Pavel Roskin 5f771b594e * fish.c (open_archive_int): Set remote locale to C, otherwise
timestamps cannot be parsed in some locales.
2002-07-14 16:27:15 +00:00
Pavel Roskin a2f136fdc3 s/ommited/omitted/ 2002-07-14 06:36:07 +00:00
Pavel Roskin da27ec10cd * fish.c (file_store): Reduce input block size to 256 bytes,
otherwise dd gets partial blocks.
2002-07-13 01:10:24 +00:00
Pavel Roskin 00700a9ce2 * ftpfs.c (login_server) [HSC_PROXY]: Fix crash. 2002-07-13 00:22:49 +00:00
Pavel Roskin afd132617d * ftpfs.c (ftp_split_url): Implement looking up password in
.netrc for known user.
2002-07-12 23:41:43 +00:00
Pavel Roskin e88191dd7c * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
return a username.
(netrc_has_incorrect_mode): Don't free anything, it can result
in freeing some variables twice.
(find_machine): New function to find matching "machine" or
"default" token.
(lookup_netrc): Eliminate external loop - scan for login and
password, but don't fallback to another string in case of
trouble.
2002-07-12 23:20:03 +00:00
Pavel Roskin 14bac1dda4 * ftpfs.c: Introduce enum keyword_t to improve readability.
(netrc_next): Fix return value for unknown keywords.
(lookup_netrc): Remove special processing of "*netrc*".
2002-07-12 20:00:03 +00:00
Pavel Roskin 1accbb4789 * ftpfs.c (ftp_split_url): Move protection against pass being
NULL ...
(lookup_netrc): ... here.
2002-07-12 17:39:01 +00:00
Pavel Roskin 4f52b831df * xdirentry.h: Eliminate use_proxy field.
* ftpfs.c (open_archive_int): Use SUP.proxy instead of
SUP.use_proxy.
(open_archive): Set SUP.proxy to ftpfs_proxy_host.
* ftpfs.h: Eliminate unused structures.
2002-07-12 00:05:11 +00:00
Pavel Roskin 6ddf5f78ed * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
* utilvfs.c (vfs_split_url): Return NULL as username if
URL_ALLOW_ANON is set and no username is found in the URL,
otherwise use current name.
* ftpfs.c (ftp_split_url): New function - split URL and look up
username and password if needed.
(login_server): Use ftp_split_url().
(archive_same): Likewise.
2002-07-11 23:08:30 +00:00
Pavel Roskin 2acfb89cd4 * tcputil.h: Move use_netrc declaration ...
* vfs.h: ... here.
* ftpfs.c: Implement .netrc support unconditionally.
(lookup_netrc): Make static.
* utilvfs.c: Initialize default_is_netrc.
From Thomas Zajic <zlatko@gmx.at>
2002-07-10 21:26:55 +00:00
Pavel Roskin 6f3a7c8029 * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
this flag is for VFS only, and causes side effects in Cygwin.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_open): Likewise.
Reported by Pavel Tsekov <ptsekov@gmx.net>
2002-07-10 17:56:27 +00:00
Pavel Roskin e385a9c9ab * ftpfs.c (setup_passive): Cast arguments to isdigit() to
unsigned char for compatibility with non-GNU libc.
* tar.c (from_oct): Likewise with isspace().
Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
2002-07-03 19:09:03 +00:00
Pavel Roskin 6ecbdd05ab * extfs.c (extfs_fill_names): Generate filename#vfsname/dir
instead of #vfsname/filename/dir.  Use PATH_SEP_STR.
2002-07-03 15:54:01 +00:00
Pavel Roskin 694468d9bb * sfs.c (sfs_free): Fix memory leak.
(sfs_init): Use PATH_SEP_STR.
2002-07-03 15:27:36 +00:00
Pavel Roskin 3738d4cee0 * cpio.c (cpio_open_cpio_file): Fix type initialization.
From Andrew V. Samoilov <kai@cmail.ru>
2002-07-03 13:10:01 +00:00
Pavel Roskin 23ef3d3a9d * Makefile.am: Add samba to SUBDIRS. Forcedly set DISTDIRS to
extfs.  Remove parts that are now handled by samba/Makefile.
* samba/Makefile.in: Add more empty targets for Automake
compatibility.
2002-07-02 23:10:15 +00:00
Pavel Roskin 7f6c3c3bb6 is_gunzipable() -> get_compression_type() 2002-07-02 21:12:10 +00:00
Pavel Roskin c8ef2d7ace * ftpfs.c (send_ftp_command): Use "anonymous@" as default
anonymous password.
From Eduardo Perez Ureta" <eperez@it.uc3m.es>
2002-07-02 17:08:10 +00:00
Pavel Roskin 5389b39585 * vfs.c: Add protection against NULL strings to all is_*() functions. 2002-06-25 21:51:37 +00:00
Andrew V. Samoilov 8583c24ea4 * samba/lib/system.c (sys_ftruncate): Commented out.
* samba/lib/util.c (set_filelen): Likewise.
(setbuffer): Likewise.

* Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
* samba/tests/ftruncate.c: Removed.
* samba/configure.in: Don't check if ftruncate() can
extend a file.
2002-06-21 16:31:20 +00:00
Andrew V. Samoilov 6b843b1b44 * samba/configure.in: Don't check if ftruncate() can extend a file. 2002-06-21 16:28:45 +00:00
Andrew V. Samoilov 3663bff65f * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
* samba/tests/ftruncate.c: Removed.
* samba/configure.in: Don't check if ftruncate() can
extend a file.
2002-06-21 16:25:02 +00:00
Andrew V. Samoilov d3aceae9f7 * samba/lib/system.c (sys_ftruncate): Commented out.
* samba/lib/util.c (set_filelen): Likewise.
(setbuffer): Likewise.
2002-06-21 16:01:53 +00:00
Andrew V. Samoilov dabc54bbcd * smbfs.c: Undefine PACKAGE_BUGREPORT, PACKAGE_NAME,
PACKAGE_STRING, PACKAGE_TARNAME and PACKAGE_VERSION
before including "samba/include/config.h" to prevent warnings.
(smbfs_init): Set DEBUGLEVEL to 0.
(do_connect): Rename to ...
(smbfs_do_connect): ... this to avoid namespace clash and
make static.  Make server const. Adjust all callers.
(smbfs_add_dots): Remove.
(smbfs_stat): Remove code duplication.
(smbfs_lstat): Define as smbfs_stat.
2002-06-21 12:26:45 +00:00
Andrew V. Samoilov 1d9879b0be Fix offset calculation for symbolic links. 2002-06-06 15:16:29 +00:00
Andrew V. Samoilov 64b2eb4db3 * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
of char*[].  Remove unneeded casts.  Fix error message.
(cpio_create_entry): G_free name.
2002-06-06 12:42:23 +00:00
Andrew V. Samoilov 14ed580196 * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
of char*[].  Remove unneeded casts.  Fix error message.
(cpio_create_entry): G_free name.
2002-06-06 10:54:35 +00:00
Pavel Roskin 272cf8fd96 * Makefile.am (mcserv_SOURCES): Remove $(top_srcdir)/src/mad.c,
it breaks "make distcheck".
2002-05-22 17:26:56 +00:00
Andrew V. Samoilov a60f38583a * xdirentry.h (vfs_s_fh.u.ftp): Add append field.
(vfs_s_data.file_store): Change second argument
to (vfs_s_fh *fh).
* direntry.c (vfs_s_close): Adjust.
* fish.c (file_store): Likewise.
* ftpfs.c (file_store): Likewise.  Use "APPE" if
fh->u.ftp.append is true.
(linear_start): Care about fh->u.ftp.append.
(ftpfs_fh_open): Likewise.
2002-05-22 17:19:24 +00:00