Roland Illig
290b842c86
* utilvfs.h (vfs_parse_filetype, vfs_parse_fileperms,
...
vfs_parse_filemode): Rewrote the functions to parse Unix file
modes.
* utilvfs.c: Likewise.
* fish.c: Using the new parsing functions.
2005-09-26 11:10:24 +00:00
Andrew V. Samoilov
8491ac0c7d
* samba/lib/util.c (tab_depth): Remove.
...
* samba/include/byteorder.h: Remove all macroces with tab_depth().
* vfs/samba/lib/util_sock.c: Comment out read_smb_length(),
send_null_session_msg(), send_one_packet(), send_smd()
and read_smb_length().
* vfs/samba/libsmb/nmblib.c: Comment out copy_nmb_packet(),
copy_dgram_packet(), copy_packet() and nmb_name_equal().
2005-09-15 12:07:17 +00:00
Roland Illig
5ddb6be28e
* samba/*: Added many const qualifiers to properly fix the
...
warnings emitted by gcc with -Wwrite-strings.
* smbfs.c: Likewise.
2005-09-07 07:33:39 +00:00
Roland Illig
2841a5087f
Added const qualifiers.
2005-09-05 03:26:48 +00:00
Roland Illig
040e26b5eb
* samba/: Added a const qualifier to setup_logging().
...
* smbfs.c: Removed dbghdr_wrapper. Removed all const_cast
instances.
2005-09-05 03:17:03 +00:00
Roland Illig
7e7b81b73e
* direntry.c: Added const qualifiers to work around gcc
...
warnings.
* extfs.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* sfs.c: Likewise.
* xdirentry.h: Likewise.
2005-09-05 00:52:56 +00:00
Roland Illig
b4479c533d
* direntry.c: Removed an unused variable.
2005-08-15 21:25:02 +00:00
Roland Illig
b5e201a74a
Replaced a literal 0 with a "typed" 0, namely NETRC_NONE.
2005-08-15 21:22:30 +00:00
Roland Illig
7c1b001728
* vfs-impl.h (union vfs_dirent): Using the offsetof macro
...
instead of null pointer arithmethics.
2005-08-15 21:13:53 +00:00
Roland Illig
e132a00192
Added const qualifiers and type casts for <ctype.h> functions.
2005-07-31 21:09:29 +00:00
Roland Illig
ee4987bb5d
* samba: Added some const qualifiers to reduce the number of gcc
...
warnings.
2005-07-31 21:01:26 +00:00
Pavel Roskin
3b40737834
* extfs/urar.in: Remove month translation and year windowing -
...
they are better handled by mc. Use more robust date format.
Set locale to C.
2005-07-25 21:51:51 +00:00
Pavel Roskin
271a56e3f8
* extfs/uzip.in: Preserve seconds. Avoid month translation - it
...
only slows down processing.
2005-07-25 20:24:01 +00:00
Pavel Roskin
23c29ab03a
* extfs/ualz.in: Fix compatibility with unalz 0.51.
2005-07-25 16:19:53 +00:00
Pavel Roskin
a0c56a1a7d
* extfs/ualz.in: Anticipate eventual posixification of the date
...
format.
2005-07-22 21:54:00 +00:00
Pavel Roskin
a24baacdf8
* extfs/ualz.in: New file - support for ALZip archives.
...
* extfs/Makefile.am: Add ualz.
* extfs/extfs.ini: Likewise.
2005-07-20 19:03:53 +00:00
Roland Illig
87ab858ab0
Removed unused <mman.h>.
2005-07-18 13:20:39 +00:00
Leonard den Ottolander
133196d197
vfs/tar.c (tar_read_header): Properly handle non \0 terminated tar entries
...
with name of length NAMSIZ.
2005-07-06 14:15:54 +00:00
Roland Illig
bb14c4e1da
* vfs.h, vfs-impl.h, vfs.c, local.h, local.c, sfs.c: Removed
...
support for mmap() and munmap() from the VFS. It is unused and
cannot be applied to remote file systems.
2005-07-05 21:01:57 +00:00
Roland Illig
2a57a2e1e3
* xdirentry.h: Added missing #include directives.
2005-07-03 22:55:55 +00:00
Pavel Roskin
33ded3d61b
* extfs/u7z: New file - support for 7zip archives.
...
* extfs/Makefile.am: Add u7z.
* extfs/extfs.ini: Likewise.
2005-06-22 02:21:43 +00:00
Pavel Roskin
b2084010e4
Wrong date in last commit
2005-06-21 19:42:46 +00:00
Pavel Roskin
878175bec9
* ftpfs.c (ftpfs_get_current_directory): Warning fix - "missing
...
sentinel in function call".
2005-06-21 19:40:36 +00:00
Roland Illig
5e120f7f17
* mcfs.c (mcfs_get_remote_port): Shift an #endif two lines down
...
to avoid a warning from SunPro.
2005-06-08 00:34:54 +00:00
Roland Illig
5343037e83
* fish.c (fish_ctl): Commented out some unused code with
...
#if 0 ... #endif. This fixes a warning from SunPro.
2005-06-08 00:31:25 +00:00
Roland Illig
c4c1c12432
* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
...
place where it is used. This is necessary because the SunPro
compiler creates external references even for functions that are
only referred to in unused inline functions.
2005-06-08 00:23:44 +00:00
Leonard den Ottolander
2bba061bf0
* src/boxes.c, vfs/ftpfs.[ch]: Add checkbox to allow passive FTP
...
over proxy to VFS dialog.
2005-05-29 12:10:08 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
ba0cd89c75
* samba/lib/charcnv.c: Added const qualifiers.
2005-05-24 12:16:41 +00:00
Roland Illig
a2511b792c
* dirent.c (split_dir_name): Don't assign a string literal to a
...
char *. Use '\0' instead of 0 when operating on characters.
2005-05-24 12:09:22 +00:00
Roland Illig
d62c0470e3
* samba/param/loadparm.c: Fixed warnings reported by gcc-2.95.
2005-05-24 09:14:53 +00:00
Pavel Roskin
8b6a126125
* extfs.c: Fix warnings reported by gcc 4.0.0.
2005-05-21 03:24:50 +00:00
Roland Illig
aa262c3482
* ftpfs.c: Using HAVE_SOCKLEN_T instead of HAVE_C_TYPE_SOCKLEN_T.
2005-05-13 20:32:09 +00:00
Pavel Roskin
0ef41beb95
* samba/lib/util_sock.c: Fix gcc 4.0 warnings.
2005-05-11 20:03:41 +00:00
Pavel Roskin
b3bc70e73a
* samba/lib/debug.c (dbghdr): Constify arguments file and func.
2005-05-11 19:54:59 +00:00
Pavel Roskin
92fec3431c
* utilvfs.c: Fix gcc 4.0 warnings.
2005-05-10 23:21:42 +00:00
Pavel Roskin
79386c0add
* samba/include/includes.h: Don't include grp.h twice.
2005-05-10 20:46:40 +00:00
Andrew V. Samoilov
c6a4eae10c
* utilvfs.c (is_localized_month): Check "month" for NULL and
...
forbid punctuation characters in localized month abbreviation.
2005-04-21 10:04:06 +00:00
Roland Illig
526bf72983
* vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they
...
get void * instead of char *.
* vfs.c: Likewise.
2005-04-13 19:08:13 +00:00
Andrew V. Samoilov
4cc677124a
* extfs/uarj.in (mcarjfs_copyout): Use the regular extract command,
...
instead of redirecting all the output of the print (p) command.
2005-03-31 05:28:15 +00:00
Andrew V. Samoilov
cef3ce222a
* samba/param/loadparm.c: Remove init_locals(), lp_smb_passwd_file(),
...
lp_passwd_program(), lp_passwd_chat(), lp_unix_password_sync(),
lp_max_open_files(), lp_shmem_size(), lp_lpqcachetime(),
lp_syslog(), lp_driverlocation().
(file_lists): Commented out.
(add_to_file_list): Comment out and make a do nothing macro.
2005-03-29 15:20:51 +00:00
Pavel Roskin
fc6e8e67f2
* cpio.c (cpio_find_head): Fix for logical error that can cause
...
crash on broken cpio archives.
2005-03-29 05:24:26 +00:00
Roland Illig
ebcd6129c6
* fish.c: Declared one more parameter as unused.
2005-02-22 18:38:58 +00:00
Roland Illig
d7e7ec48dd
* *.c: Declared unused variables with (void) to avoid the gcc
...
warnings.
* extfs.c (extfs_get_path_mangle, extfs_get_path): Removed unused
parameter.
* ftpfs.c (ftpfs_netrc_bad_mode): Likewise.
* vfs.c (mc_def_getlocalcopy): Likewise.
2005-02-22 18:35:22 +00:00
Roland Illig
54cccec688
* utilvfs.h: Removed unneeded #includes.
...
* *.c: Added the #includes that have been removed from utilvfs.h.
* tcputil.c: Just removed the unneeded #include "utilvfs.h".
2005-02-19 16:36:38 +00:00
Roland Illig
9997fa69f8
* *.h: Renamed the multiple inclusion guards.
2005-02-18 21:15:37 +00:00
Andrew V. Samoilov
b75b3a042a
amba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub(),
strnorm(), strisnormal() and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-15 13:19:35 +00:00
Andrew V. Samoilov
999e265b23
* samba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub()
and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-14 13:14:01 +00:00
Roland Illig
5d55e9b92f
* vfs.c (vfs_translate_url): Add support for smb://, sh://,
...
ssh:// and mc:// filesystem requests. Introduced separate table
for vfs aliases.
* util.c (strip_password): Modifications to take the aliases into
account while eliminating passwords.
The original patch was extended by Roland Illig.
2005-02-12 14:30:48 +00:00
Andrew V. Samoilov
9ca4fc2bc0
* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
...
<unistd.h> to fix gcc 3.3 warnings about undeclared close().
2005-02-11 23:39:58 +00:00
Roland Illig
9a020da9c6
* extfs/uzip.in: Widened the regular expression for infozip to
...
also detect non-Unix file listings.
Patch provided by Jindrich Makovicka <makovick * kmlinux.fjfi.cvut.cz>
2005-02-09 21:46:28 +00:00
Roland Illig
ab442fdeee
* cpio.c: Added some FIXMEs about data representation.
2005-02-08 05:53:13 +00:00
Roland Illig
9004ac497f
* po/ChangeLog: Applied trim_changelog.
...
* slang/ChangeLog: Likewise.
* vfs/ChangeLog: Likewise.
2005-02-07 07:40:46 +00:00
Andrew V. Samoilov
94b71a6339
* samba/include/proto.h: Adjust for the last changes.
...
* samba/lib/util.c: Comment out unused ra_type, in_group(),
get_numlist(), Atoic(), dns_to_netbios_name(), name_interpret(),
directory_exist(), file_size(), unix_format(), dos_format(),
close_low_fds(), name_ptr(), name_extract(), unix_do_match(),
unix_mask_match(), do_match(), mask_match(),
interpret_protocol(), readdirname(), is_in_path(),
set_namearray(), free_namearray(), fcntl_lock(), is_myname(),
set_remote_arch(), get_remote_arch(). align2(), out_ascii() and
out_data().
(reg_get_subkey): Remove.
(reg_split_key): Remove.
* samba/lib/system.c: Comment out sys_lstat(), sys_fseek(),
sys_ftell(), sys_readdir(), sys_getwd(), sys_chown(), sys_random()
and sys_srandom().
* samba/libsmb/clientgen.c (cli_qpathinfo): Comment out.
(cli_qpathinfo2): Comment out.
(cli_printjob_del): Remove.
(cli_print_queue): Remove.
(cli_dskattr): Comment out.
2005-02-02 12:52:33 +00:00
Andrew V. Samoilov
a7a42c3d8b
* samba/lib/username.c (map_username): Comment out.
...
(user_in_list): Ditto.
2005-02-01 12:02:34 +00:00
Roland Illig
9558c7178f
* src/info.c (info_show_info): Enabled display of the device number,
...
for the case that the column in the directory listing is too
short. This had been disabled since 1994, for no obvious reason
and without any comment.
* src/screen.c (format_device_number): Added. Converts a device number
into a bounded string.
* screen.c (string_file_size): Support for larger device numbers
(and for non-Linux systems).
* vfs/cpio.c (cpio_read_crc_head): Fixed device number handling for
non-Linux systems.
* vfs/fish.c (fish_dir_load): Likewise.
* vfs/utilvfs.c (vfs_parse_ls_lga): Likewise.
2005-01-27 23:32:13 +00:00
Andrew V. Samoilov
fe0cc18988
* samba/Makefile.in: Remove BINDIR and SBINDIR.
...
* samba/param/loadparm.c: Comment out some more unused code.
2005-01-25 09:12:17 +00:00
Andrew V. Samoilov
82a3bf3d81
* samba/param/loadparm.c (print_parameter): Remove.
...
(is_default): Remove.
(dump_globals): Remove.
(dump_a_service): Remove.
(lp_dump): Remove.
(lp_dump_one): Remove.
(lp_remove_service): Remove.
(lp_copy_service): Remove.
2005-01-25 08:13:07 +00:00
Andrew V. Samoilov
a1502a0a5f
Remove genrand.c and util_unistr.c.
2005-01-20 16:48:36 +00:00
Andrew V. Samoilov
981d02ba5f
* Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
lib/util_unistr.o.
2005-01-20 16:44:27 +00:00
Andrew V. Samoilov
1ed4f8c110
* samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
...
* samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
* samba/lib/util_sock.c (reset_globals_after_fork): Removed.
2005-01-20 16:32:23 +00:00
Andrew V. Samoilov
d83d988c73
* samba/lib/util_file.c: Comment out all but fgets_slash().
2005-01-20 16:17:34 +00:00
Andrew V. Samoilov
eaca209b7c
* util_file.c: Comment out all but fgets_slash().
2005-01-20 15:06:29 +00:00
Andrew V. Samoilov
4ea1aba1e0
* samba/lib/util.c (remote_machine, local_machine): Make static const
...
char * instead of fstring.
2005-01-20 11:23:07 +00:00
Andrew V. Samoilov
43414d8182
* samba/lib/util.c: Comment out some more unused functions.
...
(global_myworkgroup): Remove unused variable.
(def_finfo): Make const.
(remote_proto, remote_arch): Make const char * instead of
fstring.
* samba/libsmb/clientgen.c (interpret_long_filename): Fix
def_finfo declaration.
2005-01-20 08:57:22 +00:00
Andrew V. Samoilov
f4cb47b95d
* ftpfs.c (ftpfs_file_store): Make sure we write() all read() data.
...
Check fstat() return value.
2005-01-19 09:17:38 +00:00
Roland Illig
135d787620
* extfs/urar.in: Fixed some quoting issues.
...
Original patch by Leonard den Ottolander.
2005-01-09 16:12:39 +00:00
Andrew V. Samoilov
1735921c14
* extfs.c (struct inode): Remove unused linkflag field.
...
(extfs_internal_stat): Eliminate "inode" variable.
(extfs_fstat): Likewise.
(extfs_unlink): Fix memory leak if extfs_get_path_mangle() fails.
2004-12-29 07:32:41 +00:00
Andrew V. Samoilov
b20f6b2dea
* fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
...
transfer abort.
2004-12-28 12:25:24 +00:00
Andrew V. Samoilov
278ae44436
* extfs.c (extfs_generate_entry): Initialize inode->last_in_subdir.
...
(extfs_read_archive): Likewise. Remove unneeded test.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
* extfs/ulha.in (mc_lha_fs_list): Use $NF instead of $10 as filename
for permission intention.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
2004-12-27 12:12:31 +00:00
Roland Illig
001a6c1b90
* extfs/uzip.in: Fix handling of archive member pathnames starting
...
with "./".
2004-12-10 00:08:31 +00:00
Roland Illig
a0aef5042d
* ext.c: Fixed FIXME by passing around a reference to a VFS.
2004-12-06 23:27:23 +00:00
Andrew V. Samoilov
65f99d5493
* tar.c (tar_read_header): Skip over records containing
...
incremental tar specific info.
2004-12-01 08:43:25 +00:00
Andrew V. Samoilov
e7b96a4600
* fish.c(fish_file_store): Fix typo fix
2004-11-29 20:15:22 +00:00
Andrew V. Samoilov
0fdf2a6e6d
* direntry.c (vfs_s_readlink): Correctly calculate link length.
2004-11-29 18:44:49 +00:00
Andrew V. Samoilov
a2bcbdb52c
* fish.c (fish_file_store): Check write() more carefully.
...
(PREFIX): Fix memory leak.
(fish_##name): Likewise.
(fish_chown): Likewise.
2004-11-29 12:45:42 +00:00
Andrew V. Samoilov
09180a901a
* direntry.c (vfs_s_open): Fix memory leak.
...
(vfs_s_retrieve_file): Check write() return more carefully.
2004-11-26 12:00:36 +00:00
Roland Illig
48690761d6
* extfs/patchfs.in: Allow extraction and deletion of patches
...
whose filenames start with "../" or "./".
2004-11-16 23:00:40 +00:00
Roland Illig
48f13535a1
* vfs.h: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
2004-11-16 16:49:37 +00:00
Roland Illig
6bbbeb77b4
* vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
Patch extended by Roland Illig.
2004-11-16 16:16:08 +00:00
Andrew V. Samoilov
1bb010e66e
Revert last changes
2004-11-16 12:50:40 +00:00
Andrew V. Samoilov
f2d94122cf
* vfs.h, vfs.c: mc_chmod(), mc_chown() parameter type cleanup.
2004-11-16 12:41:34 +00:00
Roland Illig
b7fa9f0e5f
* vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path.
2004-11-15 22:55:50 +00:00
Roland Illig
de3bc90f37
* audio.in (audiofs_list): Fixed quoting issue.
...
(audiofs_copyout): Likewise.
* uar.in (mcarfs_copyin): Likewise.
* uha.in (mchafs_copyout): Likewise.
* ulha.in (mc_lha_fs_run): Likewise.
2004-11-10 16:08:00 +00:00
Andrew V. Samoilov
6c2dcea9ff
* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
...
accept any prefix.
2004-11-08 00:04:32 +00:00
Andrew V. Samoilov
f1e93d60f7
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
* utilvfs.c (vfs_parse_filetype): Likewise.
2004-11-03 20:38:56 +00:00
Andrew V. Samoilov
fd5d77fc7b
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
2004-11-03 20:32:35 +00:00
Roland Illig
3c750ff024
* ftpfs.c: Add fallback to type int if socklen_t is not provided.
2004-11-02 21:53:55 +00:00
Roland Illig
406054b8e7
* ChangeLog: Change author of tarfs patch.
2004-11-01 11:47:13 +00:00
Roland Illig
75ec336c52
* tar.c (tar_read_header): Fix pathname canonicalization.
2004-11-01 07:49:36 +00:00
Andrew V. Samoilov
7febc1e97c
* extfs/iso9660.in (mcisofs_list): Fix regular expression for stripping
...
of file name. Use autotools macro for awk instead full path.
* ChangeLog: Replace my old e-mail with my new e-mail
2004-10-29 09:14:38 +00:00
Andrew V. Samoilov
b40bb2cb58
* extfs/iso9660.in (mcisofs_list): Fix stripping of file name in awk code.
2004-10-28 12:40:47 +00:00
Andrew V. Samoilov
f8223e659b
* fish.c (fish_open_archive_int): Fix missed "%s".
2004-10-28 11:24:43 +00:00
Roland Illig
744c65862e
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
...
appropriate. (ftpfs_open_data_connection): Likewise.
2004-10-27 18:00:42 +00:00
Andrew V. Samoilov
f3ca051033
* extfs/trpm: Put -- before "$1" to stop argument parsing.
2004-10-27 14:44:31 +00:00
Andrew V. Samoilov
c1f1ce5028
* extfs/trpm: Fix quoting issues.
2004-10-27 14:03:43 +00:00
Andrew V. Samoilov
c3cd3df138
* extfs/iso9660.in: Fix quoting issues.
2004-10-27 13:01:14 +00:00
Andrew V. Samoilov
fd913b65b6
* tar.c tar_read_header(): q should not point to a static string.
...
Canonicalize q.
2004-10-27 12:44:48 +00:00
Andrew V. Samoilov
ea5c3dead6
* vfs.c (mc_def_getlocalcopy): Don't close fd -1.
...
(_vfs_get_class): Make path "char *" instead of
"const char *" because it write to path.
(vfs_get_class): Use g_strdup()/g_free() to do "pathname"
really "const char *".
2004-10-25 12:22:52 +00:00
Andrew V. Samoilov
2c8db2c43d
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
...
it is cli_open() headache.
2004-10-25 08:15:19 +00:00