Commit Graph

761 Commits

Author SHA1 Message Date
Pavel Roskin
b684aa93dc Comment change. 2002-11-02 16:58:18 +00:00
Andrew V. Samoilov
e458d50651 * fish.c: Use name_quote() to quote filenames.
(file_store): Close localname on error.
2002-11-01 16:55:02 +00:00
Pavel Roskin
43b3170fc4 * ftpfs.c (linear_abort): Close data socket, ProFTPD 1.2.6
expects the client to close it.
2002-10-25 21:50:21 +00:00
Andrew V. Samoilov
24a4e98387 (FH_SOCK): Remove second C++ commented definiation 2002-10-25 08:23:57 +00:00
Pavel Roskin
7d90636758 Reuse existing button names. 2002-10-21 21:56:20 +00:00
Pavel Roskin
d3f0a2f61b Remove spaces around "Error" and "Warning" together with their translations.
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Pavel Roskin
7bb1b58274 * vfs.h: Remove tar_gzipped_memlimit.
From Christian Laubscher <christian.laubscher@tiscalinet.ch>
2002-10-13 23:25:57 +00:00
Andrew V. Samoilov
f4a0b6e40b * smbfs.c (fake_share_stat): Make sure share exists by
smbfs_get_path() and fill buf with realistic data
if current_share_info is NULL.  Reformat function.
(smbfs_get_path): Add const qualifier to path.
2002-10-11 15:29:55 +00:00
Andrew V. Samoilov
e751871446 (smbfs_stat): Don't write to path. 2002-10-10 10:04:41 +00:00
Andrew V. Samoilov
872e77eb1d * smbfs.c: Allow username in URL (/#smb:[user@]machine) and
reformat changed functions.
(smbfs_get_host_and_username): Fix comment.
(smbfs_fill_names): Add username@ before hostname.
(smbfs_open_link): Use IPC$ if share is empty.
(smbfs_get_path): Pass remote_path to smbfs_open_link().
(smbfs_stat): Copy username@ to server_url if passed.
2002-10-09 13:18:10 +00:00
Pavel Roskin
604950704a * ftpfs.c (linear_abort): Add a timeout after which a reconnect
is performed instead of further fetching of the remaining data.
2002-10-07 17:56:15 +00:00
Andrew V. Samoilov
3d95a5fa29 * smbfs.c: Don't define BOOL_DEFINED to fix compilation on SunOS 5.8. 2002-10-07 10:05:36 +00:00
Pavel Roskin
416008fc74 * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
of non-portable snprintf().
Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>
2002-10-07 05:32:45 +00:00
Pavel Roskin
8c39d20a57 * mcfs.c (mcfs_lseek): Explicity cast offset to int. This fixes
viewing and editing files on mcfs.
2002-10-05 01:55:58 +00:00
Pavel Roskin
70faf8a7c4 Comment change. 2002-10-05 01:54:20 +00:00
Pavel Roskin
b5e7441d98 * tcputil.c: Split mcfs-specific part to
* mcfsutil.c: ... this.
* tcputil.h: Split mcfs-specific part to
* mcfsutil.h: ... this.
* Makefile.am: Add mcfsutil.c and mcfsutil.h.
* mcserv.c: Define own got_sigpipe, which is always 0, since
mcserv doesn't call tcp_init().
2002-10-05 01:02:07 +00:00
Pavel Roskin
51a6434b44 * Makefile.am: Don't link mcserv with glib. It's unreasonable
to require a glib port for embedded systems mcserv may run on.
* mcserv.c: Replace all glib calls with standard libc calls.
* tcputil.c (rpc_get): Likewise.
2002-10-05 00:31:12 +00:00
Pavel Roskin
4d7cf0f3a7 * mcserv.c (get_client): Don't try to find the address family
from the hostname.  Always use AF_INET, because everything else
is unsupported.
2002-10-04 23:35:54 +00:00
Andrew V. Samoilov
3d4ea6e96d * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe(). 2002-10-04 13:24:10 +00:00
Andrew V. Samoilov
9740d2a810 (string_initial): Commented out.
(init_locals): Define as do nothing macro. Printing is not supported.
2002-10-03 17:00:23 +00:00
Andrew V. Samoilov
b9b33a4a39 Remove SMBRUN support 2002-10-02 11:03:08 +00:00
Pavel Roskin
8cdc2bcecd Fix the date. My clock was 1 day ahead. 2002-10-01 21:45:25 +00:00
Andrew V. Samoilov
07f3c2f7af * xdirentry.h: Comment out magic field everywhere. 2002-10-01 17:03:55 +00:00
Pavel Roskin
bd5da0af5e * Makefile.am (VFSHDRS): Remove container.h. 2002-10-01 04:26:25 +00:00
Pavel Roskin
409994fe92 * tcputil.c (check_hooks): Remove, it does nothing. Also remove
all related data structures.
2002-10-01 04:18:38 +00:00
Pavel Roskin
379ea9b60d * tcputil.c (get_remote_port): Move to mcfs.c.
(send_string): Move to mcserv.c.
(rpc_add_get_callback): Remove, it's unused.
2002-10-01 04:09:31 +00:00
Pavel Roskin
95ffa342bd * container.h: Remove, it's unused. 2002-10-01 03:54:05 +00:00
Pavel Roskin
646e878d6b Remove unused files. 2002-10-01 03:51:46 +00:00
Pavel Roskin
924c985630 * utilvfs.c: Remove tests, since get_host_and_username() is
missing.
* mcfs.c (open_tcp_link): Make static.
* tcputil.h: Remove unused definitions.
2002-10-01 03:47:46 +00:00
Pavel Roskin
0587a032ac Remove obsolete comments. 2002-10-01 03:33:11 +00:00
Pavel Roskin
99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
2002-09-29 18:35:14 +00:00
Pavel Roskin
bd4b18731e s/suplied/supplied/
s/duplicit/duplicate/
2002-09-27 00:17:10 +00:00
Pavel Roskin
b31f058eea s/appropriative/suitable/ 2002-09-26 23:40:03 +00:00
Pavel Roskin
da7e82d253 Global removal of RCS Id: flags. 2002-09-26 23:13:45 +00:00
Pavel Roskin
bbc35a31cf * sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
messages in other places.
2002-09-26 22:51:27 +00:00
Pavel Roskin
d2417f2096 * vfs.c (vfs_parse_filemode): Fix parsing for filenames that
begin with a number.
From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2002-09-25 05:09:08 +00:00
Andrew V. Samoilov
e98d979a69 * smbfs.c: Undef USE_NCURSES - no needs to include *curces.h.
(smbfs_loaddir): Fix warning.
2002-09-24 15:26:55 +00:00
Pavel Roskin
966511399b Move fcntl.h inclusion to global.h. 2002-09-23 06:45:32 +00:00
Pavel Roskin
b5700cf6f8 * configure.in: Remove support for HSC proxy - it's obsolete.
Remove all references to HSC proxy everywhere.
2002-09-22 06:14:16 +00:00
Pavel Roskin
748e028d05 * */Makefile.am: Replace mclibdir with pkgdatadir to use "share"
directory for architecture-independent files.
2002-09-21 23:49:52 +00:00
Pavel Roskin
b803c4463c Typo fix. 2002-09-21 23:04:54 +00:00
Pavel Roskin
e90d91e7a0 * mcfs.c: Move config,h to the beginning. 2002-09-21 23:01:41 +00:00
Andrew V. Samoilov
50ac0519dd * tcputil.c [!WITH_MCFS]: Disable mcfs related code.
* mcfs.c [!WITH_MCFS]: Disable all code.
2002-09-19 14:37:22 +00:00
Andrew V. Samoilov
72486652cb * smbfs.c: Don't define BOOL_DEFINED to fix compilation on SunOS 5.8. 2002-09-16 14:20:04 +00:00
Andrew V. Samoilov
3bab5199aa Fix some possible NULL dereferences. 2002-09-13 11:29:35 +00:00
Andrew V. Samoilov
7f75f866af Declare smbfs_set_debugf(). 2002-09-13 10:00:23 +00:00
Andrew V. Samoilov
6a6fb355df * smbfs.c (smbfs_set_debugf): New function to specify logfile.
* smbfs.h: Declare smbfs_set_debugf().
2002-09-13 09:46:33 +00:00
Andrew V. Samoilov
e7cf7313f8 * samba/lib/debug.c (debug_count): Removed.
(reopen_logs): Likewise.
(force_check_log_size): Likewise.
(check_log_size): Likewise.  Adjust all dependencies.
2002-09-13 09:45:13 +00:00
Pavel Roskin
f17e11bc9f * configure.in: Roll --enable-mcserv-install into ...
* acinclude.m4: ... --with-mcfs.  Adjust makefiles.
* INSTALL: Document --with-mcfs.
2002-09-13 06:01:41 +00:00
Pavel Roskin
30cc264176 * mcserv.c: Declare crypt if crypt.h is missing and we are not
using PAM.
2002-09-12 22:24:09 +00:00
Andrew V. Samoilov
c772e84710 * loadparm.c (lp_smbrun): Removed 2002-09-12 14:28:21 +00:00
Andrew V. Samoilov
14c3f90d2f * smbfs.c (statfile_helper): Merge with loaddir_helper().
(get_remote_stat): Use loaddir_helper().  Care about
single_entry instead of eliminated statfile_helper().
2002-09-12 06:25:21 +00:00
Andrew V. Samoilov
8e1af10110 * samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
parameter to (*fn)() and void *state parameter.
(cli_list): Likewise.
(cli_RNetShareEnum): Likewise.  Return int.
* samba/include/proto.h: Adjust declarations.
* smbfs.c: Adjust all helpers and dependencies.
From Samba patchsets.
2002-09-11 16:43:41 +00:00
Andrew V. Samoilov
1f06c11cc6 * smbfs.c (statfile_helper): Remove write permissions if file
has readonly attribute.  Add execute permissions for directory.
Reformat whole function.
2002-09-11 15:35:55 +00:00
Andrew V. Samoilov
996dd893b5 * smbfs.c (loaddir_helper): Remove write permissions if file
has readonly attribute.  Add execute permissions for directory.
Reformat whole function.
(server_browsing_helper): Add execute permissions.  Reformat.
(browsing_helper): Likewise.
2002-09-11 12:53:58 +00:00
Pavel Roskin
83d0b9a9d6 Global replacement for two quasi-english strings from vfs/smbfs.c. 2002-09-11 04:06:25 +00:00
Pavel Roskin
ec1b1f9614 Globally replace OS2_NT and _OS_NT with WIN32_NATIVE. 2002-09-10 22:04:11 +00:00
Pavel Roskin
9c04fa4313 * vfs.h: Remove BROKEN_PATHS, it's unused. 2002-09-10 21:51:12 +00:00
Pavel Roskin
8568fc50d9 * Make-alone.am: Get rid of all standalone code, it has been
unmaintained for years.
2002-09-10 21:48:49 +00:00
Pavel Roskin
04c7da6358 * direntry.c [!USE_NETCODE]: Disable functions used in networked
filesystems only.
2002-09-06 01:34:12 +00:00
Pavel Roskin
3697034770 * vfs.c (vfs_init) [!USE_NETCODE]: Don't register fish. 2002-09-06 01:27:45 +00:00
Pavel Roskin
3c7cc35025 * ftpfs.c: Check for existance of arpa/inet.h when using it.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* tcputil.c: Likewise.
* utilvfs.c: Likewise.
2002-09-06 01:02:25 +00:00
Pavel Roskin
0d7af2cdba * acinclude.m4: Remove Termnet support, it's too old and obscure
to be supported properly.
2002-09-03 17:58:26 +00:00
Pavel Roskin
8355430596 * vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
password reliably.
2002-09-03 17:38:30 +00:00
Pavel Roskin
09df85b9b7 Reuse other translated strings. 2002-09-03 16:55:05 +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
7744a57826 * extfs/urar.in: Use rar if unrar is missing.
From PLD Linux Distribution.
2002-08-26 04:44:20 +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 Machek
8f36c663ad Fix few typos. 2002-08-25 19:45:16 +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
214358fb02 * configure.in: Make GLIB_LIBS a separate AC_SUBST'ed variable,
use only for the programs that need it (mc and mcserv).
2002-08-23 21:02:42 +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
5d6b103e96 * vfs/extfs/ftplist.in: Remove support for running commands, it
makes no sence.
2002-08-18 22:40:36 +00:00
Andrew V. Samoilov
4fa385b62e * clientgen.c (fix_char_ptr): Commented out 2002-08-16 11:00:48 +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
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