Pavel Roskin
8355430596
* vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
...
password reliably.
2002-09-03 17:38:30 +00:00
Andrew V. Samoilov
47f1a6a51b
* smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
...
set my_errno to EINVAL - temporary fix. Reformat function.
2002-09-02 10:54:22 +00:00
Andrew V. Samoilov
019c16b047
* samba/param/loadparm.c: Add global_scope variable.
...
(parm_table): Add netbios scope parameter.
* samba/lib/util.c: Remove scope variable. Use global_scope instead.
* samba/libsmb/nmblib.c (make_nmb_name): Remove scope parameter and
use global_scope instead.
* samba/libsmb/namequery.c: Adjust make_nmb_name() calls.
* samba/include/proto.h: Adjust make_nmb_name() declaration.
From samba 2.0.7 patchset.
* samba/param/loadparm.c (lp_adduser_script): Commented out.
(lp_deluser_script): Likewise.
(lp_add_printer): Likewise.
(lp_add_one_printer): Likewise.
* samba/lib/util.c (reduce_name): Likewise.
(transfer_file): Likewise.
* smbfs.c (smbfs_do_connect): Adjust make_nmb_name() calls.
2002-09-01 06:51:24 +00:00
Pavel Roskin
565df8c70f
* extfs/urar.in: Use rar if unrar is missing.
...
From PLD Linux Distribution.
2002-08-26 04:51:10 +00:00
Pavel Roskin
44197c130d
* extfs/a: Use more portable way to redirect all output to
...
/dev/null. From PLD Linux Distribution.
2002-08-26 04:04:28 +00:00
Pavel Roskin
6f0a3ef49f
* vfs.c (vfs_parse_ls_lga): Better error message, avoid empty
...
error messages.
2002-08-24 16:29:24 +00:00
Pavel Roskin
f2bb68f3c2
* Makefile.am: Use mcserv_LDFLAGS, not mcserv_LDADD for the
...
libraries.
2002-08-23 21:22:43 +00:00
Pavel Roskin
5873f73e63
* mcserv.c: Remove old-style Linux-only support for shadow
...
passwords.
* Makefile.am: Remove reference to SHADOWLIB.
2002-08-22 18:39:54 +00:00
Andrew V. Samoilov
a3668cd14a
* ftpfs.c (dir_load): Don't handle empty remote_path in special
...
way.
2002-08-21 08:22:33 +00:00
Pavel Roskin
1c411834a8
* direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.
2002-08-20 01:08:34 +00:00
Pavel Roskin
9a36e62af2
* fish.c (pipeopen): Use _exit(), not vfs_die() to terminate the
...
child if execvp() fails.
2002-08-20 00:14:33 +00:00
Pavel Roskin
35aa47461b
* sfs.c: Don't use flag EXECUTE_SETUID because it's being
...
removed as insecure and EXECUTE_WAIT because it has no effect.
* extfs.c: Likewise.
2002-08-19 23:20:03 +00:00
Pavel Roskin
7608383a3e
* mcfs.c [!WITH_MCFS]: Disable most code.
2002-08-19 07:22:01 +00:00
Pavel Roskin
f319f7671f
* vfs.h: Declare vfs_timeout and tar_gzipped_memlimit.
2002-08-19 00:59:02 +00:00
Pavel Roskin
b1dbe77c5b
* vfs.c (mc_def_getlocalcopy): Preserve existing extension.
2002-08-15 22:30:05 +00:00
Pavel Roskin
7f923cc9c0
* direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
...
strcpy().
2002-08-15 21:31:54 +00:00
Pavel Roskin
cf8ab0de99
* extfs.c (s_readdir): Simplify.
...
* direntry.c (vfs_s_readdir): Use vfs_dirent.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
* undelfs.c (undelfs_readdir): Use vfs_dirent and
compute_namelen().
2002-08-15 21:15:17 +00:00
Pavel Roskin
37f335b8c0
* vfs.h: Introduce union vfs_dirent to ensure that we have
...
enough space for the filename.
* extfs.c (s_readdir): Use vfs_dirent. Avoid strcpy().
2002-08-15 20:29:34 +00:00
Pavel Roskin
8b8d7de7ca
* direntry.c (vfs_s_readdir): Use compute_namelen().
...
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
2002-08-15 19:38:17 +00:00
Pavel Roskin
11a66b3ffd
* vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
...
to fix warnings.
2002-08-15 01:33:11 +00:00
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
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
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
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
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