Pavel Roskin
474ff43316
* extfs.c (open_archive): Use open_error_pipe() and close_error_pipe()
...
to prevent stderr from extfs scripts pollute the screen.
(extfs_cmd): New function to run extfs scripts and handle stderr in one
place.
(extfs_open): Use extfs_cmd().
(extfs_close): Likewise.
(extfs_unlink): Likewise.
(extfs_mkdir): Likewise.
(extfs_rmdir): Likewise.
2002-12-01 20:35:15 +00:00
Pavel Roskin
30503bef51
* extfs/Makefile.am: Add uzip to EXTFS_OUT.
2002-12-01 20:25:54 +00:00
Pavel Roskin
7ba4aacd85
* mcserv.c (do_classic_auth): Restore support for shadow
...
passwords. Use crypt() instead of pw_encrypt() - the later is
missing on Slackware 8.0. Reported by
Christian Laubscher <christian.laubscher@tiscalinet.ch>
2002-11-17 05:38:29 +00:00
Pavel Roskin
56d650bbf1
* Makefile.am: Consolidate mcserv libraries into MCSERVLIBS.
2002-11-17 01:00:42 +00:00
Pavel Roskin
27899bfa2c
* mcserv.c: Include getopt.h, don't redefine optarg.
2002-11-15 17:07:06 +00:00
Pavel Roskin
dc724cdb6e
* names.c: Only leave actually used functions.
2002-11-15 06:19:34 +00:00
Pavel Roskin
6b2d184d9e
* ftpfs.c (ftpfs_open_socket): Use INADDR_NONE, not -1.
2002-11-15 05:41:27 +00:00
Pavel Roskin
70ec6bbd26
Remove fish_which().
2002-11-13 04:00:28 +00:00
Pavel Roskin
15f131afc9
* fish.c (fish_which): Make static.
2002-11-13 03:54:24 +00:00
Andrew V. Samoilov
5959aff123
* ftpfs.c (linear_abort): Close data socket dsock.
2002-11-12 15:26:18 +00:00
Pavel Roskin
6b3a6dd169
* vfs.h [USE_VFS] (mc_setctl): Specify argument types.
2002-11-11 19:25:21 +00:00
Pavel Roskin
7f6b843a94
* cpio.c (cpiofs_data): Warning fix in initization.
...
* tar.c (tarfs_data): Likewise.
2002-11-11 07:46:21 +00:00
Pavel Roskin
91f7a47331
* vfs.c: Leave only necessary includes from ../src.
2002-11-11 06:28:30 +00:00
Pavel Roskin
e5140f37d4
* vfs.c: Make the last argument to MC_OP non-empty in the
...
definition of MC_HANDLEOP. Needed for Mac OS X.
Reported by Wim Rijnders <wimrijnders@home.nl>
2002-11-11 02:03:35 +00:00
Pavel Roskin
f7477fb810
Move the entry about vfs/extfs/a to vfs/ChangeLog.
2002-11-11 01:49:52 +00:00
Andrew V. Samoilov
6b0df00830
* smbfs.c (new_dir_entry): Initialize st_ino, so recursive directory
...
copying is possible now.
2002-11-07 14:49:13 +00:00
Pavel Roskin
27244da8cc
s/shue/sure/
2002-11-06 20:10:21 +00:00
Andrew V. Samoilov
a26a1e1c0d
* vfs.c (mc_get_current_wd): Make shue returned string is null terminated.
2002-11-06 18:48:36 +00:00
Pavel Roskin
3f40a2b274
* vfs.c: Remove unused code.
...
* vfs.h: Define vfs_uid and vfs_gid as 0, they never change.
2002-11-03 10:24:45 +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
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
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
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
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
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
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
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
b31f058eea
s/appropriative/suitable/
2002-09-26 23:40:03 +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
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
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
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
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
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
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
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
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
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
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
Pavel Roskin
19121d3c08
* Makefile.am: Set samba_libsamba_a_SOURCES to an empty value
...
to override the default.
2002-05-22 16:12:55 +00:00
Andrew V. Samoilov
b314cad164
* fish.c (fish_fh_open): Generate fh->ino->localname
...
if this one is NULL and file is opened for writting only.
* ftpfs.c (ftpfs_fh_open): Likewise if control_connection_buzy
is true.
2002-05-22 13:31:15 +00:00
Andrew V. Samoilov
12ba0fc8a4
* direntry.c (vfs_s_retrieve_file): Please, care about
...
fish.local_stat ...
* fish.c (linear_close): ... here.
2002-05-21 17:27:30 +00:00
Andrew V. Samoilov
c5626b241c
* ftpfs.c (linear_read): Unset control_connection_buzy
...
on EOF.
(ftpfs_fh_close): Call vfs_s_invalidate ().
2002-05-21 17:10:50 +00:00
Andrew V. Samoilov
2b3c6b8f0b
* fish.c (fish_fh_open): Don't retrieve file if it is
...
opened for writting only.
2002-05-21 10:50:55 +00:00
Andrew V. Samoilov
09bad78c80
* xdirentry.h (vfs_s_super): Add control_connection_buzy
...
field to ftp struct.
* ftpfs.c (linear_start): Set control_connection_buzy.
(linear_abort): Unset control_connection_buzy.
(ftpfs_fh_open): Don't retrieve file if it is
opened for writting only. Open data connection as
fh->handle and unlink/unset local temporary file
if control connection isn't buzy.
(ftpfs_fh_close): New function to serve opened in
ftpfs_fh_open() data connection. Unset fh->changed
to prevent MEDATA->file_store() call from vfs_s_close().
2002-05-17 13:32:02 +00:00
Andrew V. Samoilov
05a0bd1240
* samba/include/includes.h: Eliminate all references to
...
HAVE_LIBREADLINE.
2002-05-17 11:38:05 +00:00
Andrew V. Samoilov
a844c07aac
* direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
...
* (vfs_s_open): ... here.
2002-05-17 07:08:03 +00:00
Andrew V. Samoilov
ae8e84d163
* Makefile.am (noinst_LIBRARIES): Add samba/libsamba.a
...
if USE_SAMBA_FS is true.
* (libvfs-mc.a): Don't merge object files with libsamba.a.
2002-05-14 12:41:04 +00:00
Andrew V. Samoilov
baf5611b51
* vfs.c (MC_RENAMEOP): Make arguments const.
...
* vfs.h (mc_rename): Adjust declaration.
* (mc_link): Likewise.
2002-05-13 15:39:22 +00:00
Andrew V. Samoilov
2a0dde7539
* Makefile.am (mcserv_SOURCES): Add $(top_srcdir)/src/mad.c.
2002-05-13 15:17:38 +00:00
Andrew V. Samoilov
1f557447b9
Don't check setreuid, setregid, setegid and setluid.
2002-05-11 12:12:53 +00:00
Andrew V. Samoilov
f2912b052c
* samba/configure.in: Add AC_SYS_LARGEFILE.
...
Don't check atexit.
2002-05-11 12:03:05 +00:00
Pavel Roskin
1c61b5e0ca
* samba/acconfig.h: Remove.
...
* Makefile.am: Remove references to samba/acconfig.h.
* samba/Makefile.in: Likewise.
* samba/aclocal.m4: Remove unused test AC_DIRENT_D_OFF.
* samba/configure.in: Add descriptions to AC_DEFINE calls.
Remove unused tests.
* samba/include/includes.h: Cleanup for the symbols that
samba/configure.in doesn't define.
* samba/lib/netmask.c: Likewise.
2002-05-01 03:17:56 +00:00
Andrew V. Samoilov
bef57252f4
* vfs.c (vfs_print_stats): s/transfered/transferred/
2002-04-24 08:11:07 +00:00
Andrew V. Samoilov
f7c7879add
* samba/lib/signal.c: Remove.
...
* samba/lib/debug.c (sig_usr2): Commented out.
(sig_usr1): Likewise.
* samba/lib/util_file.c (gotalarm): Commented out.
(gotalarm_sig): Likewise.
(do_file_lock): Likewise.
(file_lock): Likewise.
(file_unlock): Likewise.
(startfilepwent): Likewise.
(endfilepwent): Likewise.
* samba/Makefile.in (SAMBAFILES): Remove lib/signal.o.
* Makefile.am (SAMBA_DIST): Remove lib/signal.c.
2002-04-24 08:07:56 +00:00
Andrew V. Samoilov
a0ae265bbc
* vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs.
2002-04-19 07:25:32 +00:00
Pavel Roskin
1908a816e5
* extfs/trpm: update to work with rpm 4.x.
...
Reported by m.lusini@palazzochigi.it
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62306
2002-04-12 16:27:59 +00:00
Andrew V. Samoilov
291ab2422f
* cpio.c (cpio_skip_padding): Handle old ASCII format.
2002-04-12 13:16:00 +00:00
Andrew V. Samoilov
7df53e2bd2
* direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
...
(vfs_s_retrieve_file): Set fh->handle to -1.
(vfs_s_read): Don't manipulate with FH->handle if it is -1.
(vfs_s_write): Likewise.
(vfs_s_close): Likewise.
2002-03-06 08:46:35 +00:00
Andrew V. Samoilov
0924daa8f5
* samba/lib/debug.c: Remove syslog support.
2002-02-27 14:17:45 +00:00
Pavel Roskin
eb18605ecc
* Makefile.am: Don't compile mcserv if VFS is disabled.
...
* extfs/Makefile.am: Don't install anything if VFS is disabled.
2002-02-20 03:07:42 +00:00
Pavel Roskin
4408c4e091
* extfs.c (extfs_open): Only create a new entry if it has not
...
been found and O_CREAT is set. Consider file as changed only
if it has been successfully created.
(extfs_getlocalcopy): Open file only for reading. This prevents
marking file as changed. Actually use the has_changed argument.
Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2002-02-19 21:32:24 +00:00
Pavel Roskin
ceef847ec4
* extfs/lslR.in: Fix parsing of old entries (with year number).
...
From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
2002-02-12 17:47:27 +00:00
Andrew V. Samoilov
1711c0ab8b
* direntry.c (vfs_s_retrieve_file): Use off_t for total
...
and stat_size.
* vfs.c (vfs_s_resolve_symlink): Use snprintf
instead of sprintf.
(vfs_print_stats): Use off_t for have and need. Cast
have to double to eliminate negative percent(s).
Fix print_vfs_message string formats.
* vfs.h (vfs_print_stats): Adjust declaration.
* ftpfs.c (file_store): Use off_t for total.
Fix print_vfs_message string format.
2002-02-08 09:42:38 +00:00
Andrew V. Samoilov
ccdd8e8859
* ftpfs.c (dir_load): Speed up cd_first calculation.
...
(ftpfs_flushdir): Resurrect.
2002-02-07 19:22:20 +00:00
Andrew V. Samoilov
0314076889
(ftpfs_chmod): Don't ignore errors.
2002-02-06 12:32:52 +00:00
Andrew V. Samoilov
e32151bb9e
* ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
...
to eliminate problem with wu-ftpd.
Close sock on error. Eliminate goto.
(reconnect): Restore cwdir if login_server fails.
2002-02-06 12:28:08 +00:00
Andrew V. Samoilov
20c71f0c51
* ftpfs.c (translate_path): Remove leading slash(es) more
...
carefully.
(initconn): Check getsockname() return value.
Eliminate goto.
(linear_abort): Make ipbuf const array.
2002-02-01 12:21:55 +00:00
Andrew V. Samoilov
fa2e4f6ec9
* samba/lib/charset.c (cp_850): Make const array.
...
(cp_932): Ditto.
(codepage_p): Likewise.
* samba/lib/debug.c (priority_map): Make const array.
* samba/lib/username.c (get_home_dir): Make pass auto.
* samba/lib/util.c (become_daemon): Commented out.
(yesno): Likewise.
2002-01-29 15:45:49 +00:00
Andrew V. Samoilov
d4f5c90dd6
* ftpfs.c (reconnect): New function to restore closed connection.
...
(command): Use reconnect if EPIPE received.
(dir_load): Eliminate recursion.
(login_server): Constify netrcpass parameter.
(is_same_dir): Constify path parameter.
2002-01-29 08:09:20 +00:00
Pavel Roskin
f3ca861b8f
* cpio.c: Don't include glib.h directly.
2002-01-24 15:51:57 +00:00
Pavel Roskin
15e0ddd98c
* extfs/uzip: Fix unsafe printf.
...
Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
2002-01-22 22:23:49 +00:00
Andrew V. Samoilov
38a5875f4c
* ftpfs.c (ftpfs_chmod): Add missed '/'.
2002-01-22 09:42:41 +00:00
Pavel Roskin
6975fdf5e8
* vfs.h: Remove all tricks with system headers, they all should
...
be in global.h.
* cpio.c: Include utilvfs.h earlier.
* tar.c: Likewise.
2002-01-21 21:26:49 +00:00
Pavel Roskin
14f498cc1a
* vfs.h: Include dirent.h only if it's present.
2002-01-21 20:01:44 +00:00
Andrew V. Samoilov
2d966e0364
* vfs.c (mc_return_cwd): Fix comment. Check whatever mc_stat
...
returns. Make mc_return_cwd static const char *.
Reorder if statement to eliminate unneeded mc_stat calls.
2002-01-21 11:52:25 +00:00
Andrew V. Samoilov
aad3bb8314
* vfs.h: Spelled.
2002-01-21 11:10:57 +00:00
Pavel Roskin
50e3625d7d
* vfs.h: Remove OS/2 specific code.
2002-01-17 07:32:32 +00:00
Andrew V. Samoilov
d8bec56efe
* Makefile.am (AM_CFLAGS): Add -DCONFIGDIR=\""@configdir@"\"
...
if smbfs support is enabled.
* smbfs.c (smbfs_init): Use CONFIGDIR for smb.conf.
2002-01-11 08:24:17 +00:00
Pavel Roskin
1dcc3e89bc
* Makefile.am: Add *clean-local targets to take care of the
...
samba directory.
2002-01-03 01:26:24 +00:00
Pavel Roskin
8ef801e873
* samba/configure.in: Use explicit AC_CONFIG_AUX_DIR because
...
this setting is not inherited from the top-level configure.
2002-01-03 00:56:57 +00:00
Pavel Roskin
009eeb0a6a
* Make-mc.in: convert to ...
...
* Makefile.am: ... this.
2001-12-31 08:08:18 +00:00
Pavel Roskin
974cd6ddc0
* Makefile.am: rename to ...
...
* Make-alone.am: ... this. Automake 1.5b doesn't allow Makefile
and Makefile.am to coexist peacefully unless the former is
generated from the later.
* Make-mc.in: Remove all references to the standalone VFS.
2001-12-31 06:48:47 +00:00
Pavel Roskin
d588d57360
* extfs/ulha.in: Support for "[unknown]" and other permissions
...
in brackets. Pass the date unchanged - mc can now deal with it.
Use "lha lq" to list the archive and don't remove headers and
footers of the listing.
2001-12-18 22:55:21 +00:00
Pavel Roskin
27d176979b
s/crush/crash/ and other minor things.
2001-12-03 23:38:11 +00:00
Pavel Roskin
721ae83fff
* undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
...
1.20 and newer.
2001-11-14 17:57:06 +00:00
Andrew V. Samoilov
9d4e2fcd1c
* samba/acconfig.h: Remove WITH_SYSLOG.
2001-11-13 12:19:57 +00:00
Andrew V. Samoilov
4dd95908c0
* samba/lib/system.c (sys_chroot): Removed.
...
* samba/configure.in: Remove RUNPROG. Don't check
for chroot and execl functions.
Remove syslog logging support.
Add --with-codepagedir and --with-configdir from samba 2.2.2.
* samba/Makefile.in: Use configdir and codepagedir.
2001-11-13 11:42:53 +00:00
Pavel Roskin
992cb980de
* Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c.
2001-11-08 23:53:27 +00:00
Andrew V. Samoilov
b3f9ba7f98
* smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
...
entries into the linked list.
(smbfs_loaddir): Call smbfs_add_dots for shares or servers.
(smbfs_get_free_bucket): Eliminate utime.
(fake_share_stat): Make path const.
* samba/configure.in: Don't check whether getpass
should be replaced.
2001-11-05 13:16:17 +00:00
Andrew V. Samoilov
dd5ccea5d6
* vfs.c (mc_return_cwd): Memory leak fixed.
2001-11-02 18:18:14 +00:00
Andrew V. Samoilov
ddcd0ee421
* samba/smblib/pwd_cache.c (pwd_read): Commented out.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:12:24 +00:00
Andrew V. Samoilov
2cc50a14d6
Don't include "tcputil.h".
...
(loaddir): Symplify.
(fake_share_stat): Declare server_url const.
Use "%4o" for st_mode.
(fake_server_stat): Likewise. Return -1 if server_list != True.
2001-10-30 15:24:01 +00:00
Andrew V. Samoilov
0b88e8d6ce
(myhostname): Declare extern.
...
(get_master_browser): Declare ipzero extern. By drk@sgi.com .
http://bugzilla.gnome.org/show_bug.cgi?id=60933
2001-10-30 14:40:46 +00:00
Andrew V. Samoilov
a04a0a6b4b
* smbfs.c: Include <config.h> before everything else.
2001-10-30 12:20:11 +00:00
Andrew V. Samoilov
a9b290f926
* cpio.c (cpio_read_bin_head): Release name if mc_read fails.
...
(cpio_read_crc_head): Likewise.
2001-10-30 11:42:44 +00:00
Andrew V. Samoilov
888a4f073b
* cpio.c (cpio_read_crc_head): Fix buffer overflow.
...
(cpio_read_oldc_head): Likewise. By drk@sgi.com .
http://bugzilla.gnome.org/show_bug.cgi?id=60933
* (cpio_read_oldc_head): Release name if mc_read fails.
2001-10-25 14:24:29 +00:00
Andrew V. Samoilov
3767e8e5df
* tcputil.c (rpc_get): Add missing va_end()s. Fix memory leaking.
2001-10-25 07:57:15 +00:00
Andrew V. Samoilov
a918318c9d
* smbfs.h: Declare smbfs_set_debug.
2001-10-24 08:16:16 +00:00
Pavel Roskin
2b9f5265b4
* ftpfs.c (command): Declare with the printf attribute.
...
* undelfs.c: Remove declaration of print_vfs_message().
2001-10-20 07:12:55 +00:00
Pavel Roskin
0c52fb0f99
* fish.c (file_store): Fix incorrect format string
...
for print_vfs_message().
* ftpfs.c (file_store): Likewise.
2001-10-20 07:04:31 +00:00
Pavel Roskin
cf59af66de
* fish.c (command): Declare with the printf attribute to enable
...
warnings in gcc.
(file_store): Cast all expressions with file sizes to unsigned
long. This should fix uploading when large file support is on.
File size is limited to 4096 * ULONG_MAX for now.
2001-10-20 03:41:31 +00:00
Andrew V. Samoilov
0ff4b8ae77
* samba/configure.in: Don't check readline.h, history.h and
...
libreadline.
2001-10-18 09:24:28 +00:00
Andrew V. Samoilov
b7339b590f
* samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
...
"out of server memory" error. From samba 2.0.7 patchset.
2001-10-16 07:02:32 +00:00
Pavel Roskin
388a2fe2bf
* vfs.c (vfs_parse_filetype): Fix fallback to fifo if sockets
...
are not supported locally. Support Solaris doors, also fall
back to fifo.
2001-10-07 09:01:17 +00:00
Pavel Roskin
78982e7cc5
* sfc.c (sfs_getid): Don't use vfs_die(), return (vfsid)(-1)
...
instead.
2001-10-02 08:06:37 +00:00
Pavel Roskin
353e389689
* vfs.h [!USE_VFS]: Define macros with no effect to an empty
...
statement "do { } while (0)".
2001-10-01 06:01:13 +00:00
Pavel Roskin
d08e77f86d
* samba/acconfig.h: Only leave symbols required by Autoconf-2.52.
2001-09-30 19:50:38 +00:00
Pavel Roskin
534e8f432a
* vfs.c: Manually expand macros for mc_stat(), mc_lstat() and
...
mc_fstat() because they don't expand correctly on Solaris 8 with
large file support.
2001-09-17 21:29:51 +00:00
Pavel Roskin
92f05b1d2f
* Make-mc.in: Use USE_VFS conditional instead of relying on
...
LIBVFS.
2001-09-10 20:26:13 +00:00
Pavel Roskin
e777d48dfb
* Make-mc.in: Include necessary parts of Make.common to
...
eliminate the later.
2001-09-07 15:22:47 +00:00
Pavel Roskin
6f8323907f
Trimmed using last chtrim. Ensure exactly 2 spaces before e-mail.
2001-09-01 20:12:16 +00:00
Pavel Roskin
77e155246d
* names.c (finduname): Don't use HAVE_GETPWUID - it's never
...
defined. Don't redeclare getpwuid().
(findgname): Don't use HAVE_GETGRGID - it's never defined.
Don't redeclare getgrgid().
2001-08-24 02:51:40 +00:00
Pavel Roskin
13b66d593e
* fish.c: Remove useless semicolons after functions.
2001-08-23 17:13:43 +00:00
Pavel Roskin
efe396e30e
* vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
...
Disallow st_nlink = 0.
2001-08-19 16:11:39 +00:00
Pavel Roskin
78940c0e53
* cpio.c (cpio_read_head): Check return value of cpio_find_head,
...
because it's not equal to super->u.cpio.type in case of errors.
2001-08-19 03:38:52 +00:00
Pavel Roskin
0b36c6e5eb
* direntry.c (vfs_s_free_super): Remove i18n on commented out
...
developer-only code.
2001-08-16 22:23:05 +00:00
Pavel Roskin
e6a07c778a
* extfs.c (extfs_init): Internationalize error message, it's
...
already in sfs.c.
2001-08-16 20:43:47 +00:00
Pavel Roskin
7493ab67ad
* sfs.c (sfs_init): Use g_free(), not free() on mc_sfsini.
2001-08-11 04:57:17 +00:00
Pavel Roskin
4b54385dc6
* extfs.h: Move private structures ...
...
* extfs.c: ... here.
2001-08-07 23:54:35 +00:00
Pavel Roskin
5c7d2296ca
* extfs.h (struct entry): Remove unused `has_changed' field.
...
It's only written but never read.
(struct inode): Likewise.
* extfs.c: All dependencies changed.
(extfs_open): Mark file as changed if it's open for writing.
2001-08-07 22:47:02 +00:00
Pavel Roskin
f3e22063e1
* extfs/uzip: Update to version 1.4.0.
...
* extfs/README.uzip: Likewise.
2001-08-07 20:02:05 +00:00
Andrew V. Samoilov
7131de12c8
;)
2001-08-07 10:27:21 +00:00
Andrew V. Samoilov
4725ec12bb
;)
2001-08-03 10:20:22 +00:00
Pavel Roskin
c1d46903d7
* Make-mc.in: Make it possible to run "make install" before
...
"make all". Use more Automake-compatible target names.
2001-08-01 16:15:22 +00:00
Andrew V. Samoilov
ae7fd2fcd2
(search_dir_entry): Make text parameter const.
...
(smbfs_get_host_and_username): Make macro.
(my_forget): Fix compilation.
2001-08-01 12:24:35 +00:00
Andrew V. Samoilov
0db7865c82
* smbfs.c: Undefine VERSION to prevent warning. Comments fixes.
...
(do_connect): Symplify.
(get_stat_info): Symplify. Eliminate another fake_stat.
(smbfs_chdir): Release remote_dir after use.
(smbfs_stat): Likewise. Fix another 2 memory leaks.
(smbfs_mkdir): Release remote_file after use.
(smbfs_rmdir): Likewise.
(smbfs_open): Likewise. Indentation fixes.
(smbfs_unlink): Likewise.
(smbfs_rename): Release rb and ra after use.
2001-08-01 10:40:15 +00:00
Pavel Roskin
a1532469cd
* extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
...
From Ludovic Drolez <ludovic.drolez@freealter.com>.
2001-07-20 14:50:30 +00:00
Pavel Roskin
613dc4d1ca
* vfs.c (mc_return_cwd): Use g_get_current_dir().
2001-07-18 03:44:38 +00:00
Pavel Roskin
75be0dd7e1
Use short path in the last entry.
2001-07-15 07:24:58 +00:00
Pavel Roskin
820a35758e
* vfs/smbfs.c: Rename authinfo to smb_authinfo and
...
authinfo_get_authinfo_from_user() to vfs_smb_get_authinfo()
and remove their definitions.
* vfs/vfs.h: Declare smb_authinfo and vfs_smb_get_authinfo().
2001-07-15 07:01:41 +00:00
Pavel Roskin
c100281180
* extfs.c: Include contents of shared_tar_ext.c - it's no
...
longer shared.
* shared_tar_ext.c: Remove.
* Make-mc.in (VFSSRCS): Remove shared_tar_ext.c.
2001-07-10 14:19:11 +00:00
Pavel Roskin
ab828100df
* smbfs.c (vfs_smbfs_ops): Use short name "smbfs" for the
...
filesystem. Don't translate it.
2001-07-10 04:05:47 +00:00
Pavel Roskin
401ca73645
* tar.c (ReadStatus): Fix compilation on AIX.
...
From Dan McNichol <mcnichol@austin.ibm.com>.
2001-07-10 03:12:02 +00:00
Pavel Roskin
e1d5a8250d
* extfs/mailfs: Strip trailing DOS newlines from mail files.
...
From Christian Gennerat <christian.gennerat@vz.cit.alcatel.fr>
2001-07-09 20:07:43 +00:00
Pavel Roskin
80f37db22b
* fish.c (fish_chown): Do nothing and return success if
...
getpwuid() or getgrgid() fails.
2001-07-09 16:15:33 +00:00
Pavel Roskin
1fc74d5ab3
* README.fish: Spelling fixes.
2001-07-05 15:05:23 +00:00
Pavel Roskin
5ff9f80ca8
* Make-mc.in: Don't ever link mcserv with libintl - it must not
...
depend on it.
2001-06-29 07:20:46 +00:00
Andrew V. Samoilov
69c85ec184
* smbfs.c: Include <config.h>. Make all internal variables static.
...
(get_stat_info): Eliminate fake_stat, memory leak fixed.
(IPC, URL_HEADER): Make static const.
(smbfs_stat): Fix segmentation violation.
(statfile_helper): Allocate memory for single_entry once. It is never
freed now, and only my_stat element of this structure is used.
2001-06-27 12:26:27 +00:00
Pavel Roskin
19bf66d5e0
* vfs.h: Don't include <config.h>.
2001-06-26 14:41:31 +00:00
Pavel Roskin
680f3f7ed2
* cpio.c: Include <config.h> before everything else.
...
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* local.c: Likewise.
* tar.c: Likewise.
* utilvfs.h: Don't include <config.h> - it should be included
in all C files instead.
* xdirentry.h: Likewise.
2001-06-25 21:34:46 +00:00
Pavel Roskin
d8ec86292f
* local.c (local_telldir): Warn and abort if telldir() is not
...
available.
(local_seekdir): Warn and abort if seekdir() is not available.
2001-06-19 19:36:54 +00:00
Pavel Roskin
f76a2c4576
* tcputil.c (sig_pipe): Use the same declaration with one int
...
argument - it's used everywhere else and it fixes a warning on
systems unlisted in the ifdef, e.g. OpenBSD.
2001-06-18 20:35:44 +00:00
Pavel Roskin
5da3b42969
* ftpfs.c: Declare functions without declarations static. Don't
...
omit `void' in declarations.
* cpio.c: Likewise.
* direntry.c: Likewise.
* extfs.c: Likewise.
* mcfs.c: Likewise.
* tar.c: Likewise.
* vfs.c: Likewise.
* vfs.h: Likewise.
* mcserv.c: Likewise. Remove unused functions.
2001-06-14 20:08:27 +00:00
Pavel Roskin
22a3755dc0
* util-alone.c: Use indented #error.
...
* vfs.h: Use indented #warning instead of hiding it from non-gcc
compilers.
2001-06-14 15:26:29 +00:00
Pavel Roskin
6fe51516de
* cpio.c (vfs_cpiofs_ops): Use short name for the filesystem.
...
This avoids creating long filenames in dirent.c when the "name"
field is used.
* extfs.c (vfs_extfs_ops): Likewise.
* fish.c (vfs_fish_ops): Likewise.
* ftpfs.c (vfs_ftpfs_ops): Likewise.
* local.c (vfs_local_ops): Likewise.
(vfs_nil_ops): Likewise.
* mcfs.c (vfs_mcfs_ops): Likewise.
* sfs.c (vfs_sfs_ops): Likewise.
* tar.c (vfs_tarfs_ops): Likewise.
* undelfs.c (vfs_undelfs_ops): Likewise.
2001-06-11 21:58:58 +00:00
Pavel Roskin
49d8cd7f50
* sfs.c (sfs_init): Change some warning messages to simplify
...
their translation.
2001-06-07 05:08:52 +00:00
Pavel Roskin
aa8c484f31
* shared_ftp_fish.c: Remove.
...
* Make-mc.in: Remove shared_ftp_fish.c.
* Makefile.am: Likewise.
2001-06-06 19:07:21 +00:00
Pavel Roskin
c6f85d7969
* vfs.c (vfs_canon): s/canonize/canonicalize/.
2001-06-02 06:36:00 +00:00
Andrew V. Samoilov
07b052699e
* ftpfs.h: Declare use_netrc, ftpfs_retry_seconds, ftpfs_first_cd_then_ls,
...
ftpfs_use_passive_connections and ftpfs_use_unix_list_options.
* vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
exclusive now.
(is_week): Unmade week static.
(is_month): Unmade month static.
(vfs_parse_ls_lga): Optimize memory usage.
* .cvsignore: *.sor added.
* sfs.c (sfs_init): Optimized.
* vfs/samba/lib/util_sock.c (socket_options): Made static const.
2001-06-01 17:46:57 +00:00
Andrew V. Samoilov
f52cfa5607
2001-05-30 Ludovic Drolez <ludovic.drolez@freealter.com>
...
* sfs.c (sfs_init): Don't hardcode location of sfs.ini,
use mc_home to make mc relocatable.
2001-05-30 12:05:50 +00:00
Andrew V. Samoilov
6eda540762
'* src/main.c: Correct some comments after #endif
...
(shell): Remove comment and #ifdef around shell variable.
(process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
between one #ifdef ... #endif pair.
(process_args): smbfs_set_debug () takes a debug level as argument,
commented out.
* vfs/sfs.c (shell): Variable moved to ...
* vfs/util-alone.c (shell): ... here'
2001-05-28 14:19:34 +00:00
Pavel Roskin
926aa5ac6b
* fish.c: Redirect stderr of all commands to /dev/null.
2001-05-27 06:46:34 +00:00
Pavel Roskin
fe7780ab1d
* sfs.c (vfs_sfs_ops): Typo fix.
2001-05-26 05:11:17 +00:00
Pavel Roskin
038099783c
* vfs.c (vfs_split_text): Fill `columns' with zeroes before
...
writing new data into it.
2001-05-22 22:40:44 +00:00
Pavel Roskin
f729bde328
* fish.c (free_archive): Use exit' instead of
logout' - the
...
later fails under non-login shells.
(pipeopen): Redirect stderr of ssh to /dev/null.
From Rich Roth:
(dir_load): Redirect stderr of ls to /dev/null.
(linear_start): Likewise.
2001-05-22 20:24:53 +00:00
Andrew V. Samoilov
0477cda1c3
* Make-mc.in (mostlyclean): Remove $(VFSSOOBJS).
...
(clean): Remove *.so.
* smbfs.c: Include utilvfs.h instead of ../config.h, ../src/main.h,
../src/tty.h and ../src/global.h.
(password, username): Made static.
(is_error): Commented out.
(loaddir_helper): Don't ignore hidden files, style fixes.
(browsing_helper): typestr declared as char *, fstrcpy replaced by =.
(do_connect): Call cli_shutdown () and authinfo_remove () if
cli_session_setup () fails. It is not good idea to remember
wrong username/password.
(smbfs_free_dir): Nested between #ifdef SMBFS_FREE_DIR ... #endif.
(smbfs_readdir): #ifdef SMBFS_FREE_DIR used instead of C comment.
2001-05-22 13:18:18 +00:00
Pavel Roskin
112b99950e
* sfs.c (redirect): Don't free the filename after failed
...
mc_mkstemps() - it's not needed anymore.
2001-05-22 07:11:32 +00:00
Pavel Roskin
bea09b932d
* src/ext.c (exec_extension): Use mc_mkstemps().
...
* src/user.c (execute_menu_command): Use mc_mkstemps().
* src/util.c (mc_mkstemps): New function - safely create and
open temporary file. Return the handle and the name.
* src/util.h: Declarations for init_tmpdir() and mc_mkstemps().
Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
* vfs/direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
temporary file to reserve its name on the filesystem.
(vfs_s_retrieve_file): Use mc_mkstemps().
(g_tempnam): Remove.
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
* vfs/sfs.c (redirect): Likewise.
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
(retrieve_file): Likewise.
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
* vfs/xdirentry.h: Remove declaration of g_tempnam().
2001-05-21 16:21:07 +00:00
Pavel Roskin
8a025d6efa
* vfs.c (vfs_addstamp): Rename st1 to last_stamp. Initialize it
...
with NULL to suppress compiler warning.
2001-05-18 19:04:42 +00:00
Pavel Roskin
da80aef5a8
* ftpfs.c: Warning fixes.
2001-05-14 23:34:43 +00:00
Pavel Roskin
02cd7bff21
* utilvfs.h: Include background.h.
...
* cpio.c: Include utilvfs.h.
2001-05-14 23:30:21 +00:00
Pavel Machek
c4bc884645
add possibility to build libvfs.so
2001-05-14 20:38:30 +00:00
Pavel Roskin
d2026648fe
* extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
...
rpm output varies between versions.
(mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
filenames beginning with "./" - they are used in the version 4
packages.
2001-04-19 20:51:41 +00:00
Pavel Roskin
f5758a24c9
* fish.c (open_archive_int): Redirect stderr of start_fish_server
...
to stdout so we don't get confused if it doesn't exist.
2001-04-17 19:48:03 +00:00
Andrew V. Samoilov
6e8cfd807f
* samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
...
NULL when appropriative error message can't be found as it is expected
in cli_errstr(). Return type changed to const char *
* smbfs.c (smbfs_fill_names): implemented
(smbfs_stat): unneeded g_strdup/g_free calls removed
(smbfs_loaddir): memory leaking fixed
* samba/libsmb/clientgen.c (rap_errmap, prots): constified
2001-04-09 12:12:20 +00:00
Pavel Roskin
e19d03e693
* Make-mc.in: Use a single variable SAMBA_DIST to hold all
...
distributable samba files.
2001-04-06 05:56:02 +00:00
Andrew V. Samoilov
b7b5c71de3
* samba/libsmb/smbdes.c: undefine uchar before redefine it
...
* smbfs.c (smbfs_close): honour changed semantics for return value
(on error -1 is expected).
* (fs): it is at least strange use char * for counter. Changed to int
2001-03-15 18:19:23 +00:00
Pavel Roskin
8e2dd48337
* Make-mc.in: Use Automake conditional USE_SAMBA_FS.
...
Remove any knowledge of SAMBAFILES. Merge object files with
libsamba.a if USE_SAMBA_FS is true. Propagate "mostlyclean"
to the `samba' directory. Don't ignore errors from ranlib.
2001-03-15 01:40:30 +00:00
Pavel Roskin
bafc61e43e
* samba/Makefile.in: Make *clean targets Automake-compatible.
...
Don't ignore errors from `rm'.
2001-03-15 01:35:07 +00:00
Pavel Roskin
d92beac560
* samba/configure.in: Use AC_CHECK_TOOL to find AR.
...
* samba/Makefile.in: Remove useless rules, including defunct
dependency tracking. Create libsamba.a from the object files.
2001-03-15 01:25:51 +00:00
Pavel Roskin
2dc6461bba
* cpio.c (cpio_skip_padding): Warning fix.
...
* fish.c (dir_load): Likewise.
* mcfs.c: Likewise.
2001-03-08 01:04:58 +00:00
Pavel Roskin
de997c6f3a
* extfs/uzip: New file from Oskar Liljeblad.
...
* extfs/README.uzip: Likewise.
* extfs/Makefile.am: Adjust for constant uzip.
2001-03-08 00:34:20 +00:00
Pavel Machek
773f38c580
2001-03-07 Pavel Machek <pavel@bug.ucw.cz>
...
* extfs/*uzip*: replace uzip with perl version by
Oskar Liljeblad <osk@hem.passagen.se>
2001-03-07 10:20:16 +00:00
Andrew V. Samoilov
4ac1c260e9
* vfs.[ch] (vfs_parse_ls_lga, vfs_parse_filemode): p constified
...
(vfs_strip_suffix_from_filename): filename constified
(vfs_parse_ls_lga): memory leaking fixed when line can't be parsed,
chomping unified
2001-03-05 06:00:27 +00:00
Andrew V. Samoilov
fbf86d5a22
* extfs/patchfs: LANG overrides LC_TIME at least in glibc,
...
so use LC_ALL=C to override any locale
* smbfs.c (smbfs_open_link): service initialized
* (my_forget): new features of vfs_split_url used
smbfs.c at all: make gcc some more happy
2001-03-04 18:55:17 +00:00
Pavel Roskin
9e22f3b8d7
* extfs/uzip.in (mczipfs_list): Allow filenames with colons.
...
Reported by Christian Gennerat.
2001-03-01 06:16:20 +00:00
Pavel Machek
7c997958f6
Error handling of ungetlocalcopy was buggy. Fixed.
2001-02-28 21:50:57 +00:00
Pavel Machek
776af93dc8
Do not ignore errors during mc_ungetlocalcopy.
2001-02-27 22:19:04 +00:00
Pavel Roskin
4f9c3415a5
* extfs/lslR (mclslRfs_list): Don't use gawk-specific features.
...
Don't hardcode gawk. Don't rely on the date format occupying a
fixed number of fields.
2001-02-23 08:45:13 +00:00
Pavel Roskin
c0d8ea01b9
* extfs/uzip.in (mczipfs_list): Don't check zipinfo support on
...
the real file - check usage info instead. Use more robust checks
for valid lines. Suppress stderr from unzip. Workaround for jar
files - fix mode for files ending with slash.
2001-02-23 07:26:30 +00:00
Pavel Roskin
447597a790
* vfs.h: Include sys/timeb.h if it's present. Include time.h and
...
sys/time.h as recommended by Autoconf documentation.
* cpio.c: Remove all time-related includes - they are in vfs.h.
* extfs.c: Likewise.
* ftpfs.c: Likewise.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* tar.c: Likewise.
* util-alone.c: Likewise.
* vfs.c: Likewise. Include xdirentry.h.
2001-02-20 16:55:58 +00:00
Pavel Roskin
cde914f99a
* extfs.c: Include xdirentry.h. Undefine ERRNOR before
...
redefining it.
2001-02-20 16:24:49 +00:00
Pavel Roskin
459e0ee296
* shared_tar_ext.c (__find_entry): Make sure that the parent is a
...
directory even if the child is not.
2001-02-19 20:55:26 +00:00
Pavel Roskin
1a4495c4c7
* extfs/mailfs (parse_date): Correctly handle two-digit years
...
between 1970 and 1999.
2001-02-19 18:42:12 +00:00
Pavel Roskin
a18b4a09eb
* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
...
checking for ctime() format.
From Peter Daum.
2001-02-15 01:37:43 +00:00
Pavel Roskin
d0c9ee2e9f
Fixed incomplete description of the last patch.
2001-02-11 07:21:29 +00:00
Pavel Roskin
27d7ebd2a3
* extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
...
for dates found in AOLMail(SM) messages. Provide a fallback if
cannot parse the date.
(process_header): Typo fix. Use s instead of space in regular
expressions.
2001-02-11 07:10:49 +00:00
Pavel Roskin
4c7f17ce21
* extfs/uzip.in: Preserve permissions of FAT and NTFS archives,
...
including the directory bit. This fixes crashes on some FAT
archives.
2001-02-10 09:25:07 +00:00
Pavel Roskin
53a4e96313
* samba/configure.in: Remove more useless tests.
...
* samba/tests/crypttest.c: Remove.
* samba/tests/fcntl_lock.c: Likewise.
* samba/tests/shared_mmap.c: Likewise.
* samba/tests/sysv_ipc.c: Likewise.
* samba/samba-files: Likewise.
* samba/smbadduser: Likewise.
* Make-mc.in: Adjust for the above.
* samba/include/includes.h: Removed definitions related to the
above tests.
2001-02-09 20:46:46 +00:00
Pavel Roskin
90096c49b9
* Make-mc.in: Eliminate ubiqx.
...
* samba/Makefile.in: Likewise. Remove some unused variables.
* samba/include/includes.h: Eliminate dependency on ubiqx.
* samba/include/nameserv.h: Likewise.
* samba/include/proto.h: Remove prototypes from nmbd/*.
* samba/ubiqx/*: Remove.
2001-02-09 20:03:04 +00:00
Pavel Roskin
47a538a968
* samba/configure.in: More useless stuff removed.
...
* samba/Makefile.in: Likewise.
* Make-mc.in: Remove samba/smbwrapper directory.
* samba/smbwrapper/smbw.h: Remove.
* samba/include/includes.h: Don't include smbw.h.
2001-02-09 19:31:35 +00:00
Pavel Roskin
2586b393e1
* samba/configure.in: Don't check for things that are unused.
...
Remove support for building shared libraries.
* samba/Makefile.in: Remove support for shared libraries and
quota.
2001-02-09 18:42:25 +00:00
Pavel Roskin
e3fb615e35
* samba/configure.in: Don't check for any 64-bit functions and
...
syscall() - they are not needed.
2001-02-09 08:12:10 +00:00
Pavel Roskin
78fa0d0b65
* samba/configure.in: Remove the test for
...
HAVE_EXPLICIT_LARGEFILE_SUPPORT, since it's incompatible with
the rest of the source that doesn't use explicit 64-bit calls.
2001-02-09 07:36:44 +00:00
Pavel Roskin
4a24c76cc4
* Make-mc.in: Always check for samba/Makefile before descending
...
there. Don't ever ignore errors from "cd". Use $(MAKE), not
make. Formatting changes.
2001-02-09 06:39:34 +00:00
Pavel Roskin
33e22a4ccb
* Make-mc.in: Undo previous fix. Don't run "make clean" in
...
samba/ if samba/Makefile is missing.
2001-02-08 16:35:13 +00:00
Pavel Roskin
29fd6aca1b
* Make-mc.in: Don't run "make clean" in samba/ as samba/Makefile
...
may be missing. Clean using the rule from samba/Makefile.in.
2001-02-08 16:01:20 +00:00
Pavel Roskin
c786ce8984
* cpio.c: Eliminate C++ comments.
...
* fish.c: Likewise.
2001-02-08 07:13:27 +00:00
Pavel Roskin
a6fa2fe5e6
* Make-mc.in: Use mkinstalldirs to create $(distdir)/extfs,
...
since CVS Automake already creates that directory.
2001-02-08 07:02:30 +00:00
Pavel Roskin
16874dded6
* Make-mc.in: Don't add _LARGEFILE64_SOURCE to CFLAGS without
...
testing - it breaks on HP-UX 10.20.
2001-02-08 05:55:44 +00:00
Pavel Roskin
4c1e96b8d9
* Make-mc.in: Don't distribute samba/tests/trapdoor.c and
...
samba/tests/ftruncroot.c.
2001-02-08 02:00:21 +00:00
Pavel Roskin
bbc91a29a5
* samba/configure.in: Remove tests for setresuid and setresgid.
...
* samba/include/includes.h: Remove declarations of setresuid and
setresgid.
2001-02-08 01:29:38 +00:00
Pavel Roskin
e30e6b8a5a
* samba/configure.in: Don't check for root permissions. Don't
...
call tests/trapdoor.c and tests/ftruncroot.c.
* samba/tests/trapdoor.c: Remove.
* samba/tests/ftruncroot.c: Likewise.
* samba/tests/summary.c: Don't warn about trapdoor uid systems.
2001-02-08 00:59:35 +00:00
Pavel Roskin
23162f96b9
* Make-mc.in: Don't link container.o into libvfs-mc.a - it's
...
not used.
2001-02-08 00:28:15 +00:00
Pavel Roskin
7c587c375b
* samba/aclocal.m4: Fix underquoting.
...
* samba/configure.in: Fix underquoting. Don't use loff_t as the
second argument to AC_CHECK_TYPE - it's not a builtin type.
2001-02-07 23:49:43 +00:00
Pavel Roskin
1c3d0e0d62
* samba/configure.in: Remove checks for statvfs and friends -
...
they are irrelevant to the client code.
* samba/tests/summary.c: Likewise.
2001-02-07 15:41:18 +00:00
Andrew V. Samoilov
f2d2af671f
* extfs/urar.in (list): better solution to prevent duplication
2000-12-15 11:50:45 +00:00
Andrew V. Samoilov
2f76be3354
:)
2000-12-14 01:21:04 +00:00
Pavel Machek
55e56a1426
Fixes from Roland: we may not g_free() strdup-ed text.
2000-10-31 15:43:49 +00:00
Andrew V. Samoilov
c5ec3ea3d9
:)
2000-10-22 15:06:21 +00:00
Andrew V. Samoilov
6f10b0fdb3
:)
2000-10-16 18:35:21 +00:00
Andrew V. Samoilov
ed0753665b
:)
2000-10-09 22:44:51 +00:00
Pavel Roskin
dd9705f8e9
* extfs/rpm: If rpm indicates an error create a virtual file
...
ERROR and put error messages there.
2000-10-06 01:43:46 +00:00
Pavel Machek
c3edb91d89
Better unarj.diff
2000-09-25 12:49:41 +00:00
Pavel Roskin
ed3fbae2ed
* extfs/uzoo.in: Suppress output from grep. Don't use '~',
...
use $HOME instead - it's more portable.
2000-09-21 20:58:10 +00:00
Pavel Roskin
68ffa5da8f
* extfs/Makefile.am: all scripts should be executable
2000-09-18 15:52:16 +00:00
Pavel Machek
ca504d4f91
Override locale for patchfs.
2000-09-18 14:25:47 +00:00
Pavel Machek
eabe77c776
Better /#a filesystem
2000-09-14 20:53:57 +00:00
Pavel Roskin
e053e5effe
* Make-mc.in: direntry.c was listed twice in VFSSRCS
2000-09-14 20:34:52 +00:00
Pavel Roskin
d572f3a51f
* Make-mc.in: removed commands to build standalone libvfs -
...
they are now in Makefile.am. Create links in the build
directory - source directory may be read-only. Removed hack
with mcservx - it's no longer needed.
2000-09-14 16:13:36 +00:00
Pavel Roskin
06a39fbd2d
* ftpfs.h: include "xdirentry.h" instead of "vfs/xdirentry.h"
2000-09-14 15:06:14 +00:00
Pavel Roskin
316d642896
* Make-mc.in: don't ignore errors in the distdir target
2000-09-05 18:26:40 +00:00
Pavel Roskin
4a032150e9
* configure.in: output vfs/extfs/Makefile
...
* vfs/extfs/Makefile.am: new file
* vfs/Make-mc.in: remove stuff pertinent to the extfs directory
2000-09-01 21:34:26 +00:00
Pavel Roskin
cfd82e2788
* Make-mc.in: don't ignore error installing mcserv.
...
Create directories before installing into them.
2000-08-24 14:39:33 +00:00
Pavel Roskin
5b11ed2900
Adjusted lists of distributed files
...
Fixed rules for rebuilding makefiles
2000-08-18 05:18:47 +00:00
Pavel Machek
03f1a9601b
Enhancements to uzip.in
2000-08-08 17:20:57 +00:00
Pavel Machek
a1d1728dc8
ftpfs . / .. is broken, but previous fix was worse than disease.
2000-08-08 15:12:39 +00:00
Pavel Machek
127611ec77
Fix . and .. in ftpfs directories.
2000-08-04 12:15:46 +00:00
Pavel Machek
68e2b7a1e5
Added missing function.
2000-08-04 12:03:43 +00:00
Pavel Roskin
062aa46cec
undelfs.h: Removed
2000-08-03 21:58:19 +00:00
Pavel Roskin
0ebabd29c7
Make-mc.in: Filters apt, audio, deba, debd and dpkg are now
...
distributed. Added some comments to prevent future errors.
"make distclean" now cleans generated filters.
2000-08-02 22:36:15 +00:00
Pavel Roskin
fd07976482
Fixed sloppy output. The fix also sent to the Samba team.
2000-08-02 20:17:13 +00:00
Pavel Roskin
dda5a51112
samba/include/stamp-h.in: Added to CVS
2000-08-02 17:15:33 +00:00
Pavel Machek
b1185ecc73
* vfs.c (mc_[un]def_getlocalcopy): better error handling on writing
...
--------------------------------------------------------------
2000-05-25 14:47:48 +00:00
Pavel Machek
392c7489e3
2000-05-18 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* ftpfs.c: (my_get_host_and_username) space between macro name and
parentheses removed
2000-05-19 13:09:41 +00:00
Pavel Machek
c319041ba8
2000-05-15 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* tar.c (read_header): memory leaking for empty symlink's names fixed
* utilvfs.c (vfs_split_url): *host is not assigned if host is null
* ftpfs.c (login_server): new features of vfs_split_url () used,
my_get_host_and_username became macro
* vfs.c (mc_opendir, mc_chdir): unneeded calls to concat_dir_and_file
removed (vfs_canon removes trailing '/')
* sfs.c (vfmake, redirect): allocated memory realeased on errors
2000-05-16 14:59:33 +00:00
Pavel Machek
7d50be2f1c
Do not leave st_nlink uninitialized.
2000-05-10 10:19:00 +00:00
Miguel de Icaza
b028900fdd
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
...
* src/user.c: Add macro %k it is block file name
Add macro %e it is error file name
Add macro %i it is cursor column indent of spaces, only for edit
Add macro %y, it is syntax of current file in editor, only for edit
Add condition y , it is syntax pattern of current file in edit
Add macro %x it is extension of current file
Add macro %m it is current menu filename
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
(the message of David H. Martin <dmartina@usa.net>)
2000-05-05 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add condition (x filename) into mc.menu .
for "Open next a free console" and like.
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
src/user.c: fix segfault in chunk_alloc of glibc, when into condition
of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/edit.c:
Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
* gtkedit/editmenu.c: home: ~/.cedit.menu, local: .cedit.menu
Marked block is access now from an user edit menu
Access ~/.cedit/cooledit.block for insert to cursor place from
user edit menu.
Created system cedit.menu
2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* gtkedit/editdraw.c:
Improved a status string of cool editor for best understand,
and to add char,hex view.
2000-05-04 Richard Hestilow <hestgray@ionet.net>
* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 01:18:27 +00:00
Pavel Machek
8542ae3328
Fixed problems with stating / of ftp archive; minor bugfix.
2000-05-03 19:10:52 +00:00
Pavel Machek
d91a2b9a63
2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
* direntry.c (vfs_s_internal_stat): added ugly special case for /
of archive to always exist. It seems I'm hiding some underlying
problem :-(.
2000-04-28 07:56:30 +00:00
Pavel Machek
d7bf5305b1
2000-04-26 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL
(vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0
* ftpfs.c (dir_load): ent->name is free()d for "." and ".."
(ftpfs_directory_timeout): default value changed to 900
(netrc_next): "const char * const keywords" go to rodata and is shared
2000-04-28 07:43:13 +00:00
Pavel Machek
a1225de8b3
Fix problems with stating / of ftp server + NO_LOCALHASH to prevent
...
podfuk deadlocs
2000-04-16 19:13:00 +00:00
Timur Bakeyev
b27e5517b9
2000-04-14 Timur Bakeyev <mc@bat.ru>
...
* config.in: Added check against strcoll().
2000-04-14 08:59:19 +00:00
Timur Bakeyev
ec83d4571e
2000-04-15 Timur Bakeyev <mc@bat.ru>
...
* ftpfs.c (netrc_next): "const char * keywords" is pretty nice.
* ftpfs.c (dir_load): At last, found place, that broke handling
directories with spaces in name. Problem was in prepending "/"
to "." for current directory. Which was, obviously, wrong. Hacked
to make just "LIST -la ." instead.
* vfs.c: Changed to BUF_* constants in some places.
2000-04-14 01:14:26 +00:00
Pavel Machek
b84e803046
Allow spaces in lslR.in
2000-04-12 09:25:07 +00:00
Pavel Machek
5b81966b3e
2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
* extfs/audio: Added a way to browse audio CDs conviently
2000-04-10 12:29:29 +00:00
Pavel Machek
9e7b2625d5
2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
* undelfs.c: use NULLs instead of 0s when you assign to pointers!
2000-04-10 12:23:00 +00:00
Pavel Machek
f5f1ec0523
2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* utilfs.c (vfs_split_url): don't assign *pass if pass is NULL
* fish.c (archive_open, archive_same): memory allocated by
vfs_split_url () must be released after use, don't strdup()
values allocated by vfs_split_url () and NULL passed to
vfs_split_url () when password value is unused
* ftpfs.c (archive_open, archive_same): ditto plus same for
ftpfs_get_proxy_host_and_port ()
2000-04-10 12:00:43 +00:00
Timur Bakeyev
3bfe8a0b3c
2000-04-06 Timur Bakeyev <mc@bat.ru>
...
* ftpfs.c (netrc_next): Turned strange "const char * const keywords"
into more alike "const char const * keywords". Still, think, it's
too strict.
* smbfs.c: Add #define BOOL_DEFINED before inclusion of samba headers.
Libncurses(or slang?) defines BOOL and that can cause problems. (In fact,
I can't find references to that const, but sure, I hade reason to do that:)
* util-alone.h: Declare load_anon_passwd() to avoid warnings.
2000-04-09 23:06:59 +00:00
Pavel Machek
425dbd07c1
2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
crushes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
* fish.c (linear_start): name wasn't freed after usage
* cpio.c (cpio_ungetlocalcopy): return type changed to int,
function return 0 now
* direntry.c (vfs_s_close, vfs_s_resolve_symlink): memory, allocated
by vfs_s_fullpath () is freed after use
* ftpfs.c (linear_start): ditto;
2000-04-05 13:08:42 +00:00
Pavel Machek
24c6ab65f5
Do not free paths returned from vfs_s_get_path_mangle.
2000-04-03 10:35:48 +00:00
Pavel Machek
b15c763325
Fixes to way files with space in name are handled.
2000-03-29 13:36:54 +00:00
Pavel Machek
d5d72d865b
Set locales to C before calling rpm.
2000-03-28 10:49:26 +00:00
Pavel Machek
24ccfadb27
2000-03-06 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.c (vfs_parse_ls_lga): don't hard code st_ino and st_dev to 0's,
these variables must be assigned in vfs_s_new_inode () or extfs
layer, so ftpfs subdirectories now can be copied.
2000-03-06 16:31:37 +00:00
Pavel Machek
0b25d26cf0
2000-02-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
mc_(un)?getlocalcopy): added const qualifier
(mc_def_getlocalcopy): tempnam() returns malloc()ed buffer,
so, free() it, not g_free();
(vfs_canon): prepend filename by cwd when tilde '~' cannot be expanded;
2000-02-25 12:53:06 +00:00
Pavel Machek
bc97907e77
Make cpiofs compilable.
2000-02-23 12:35:36 +00:00
Norbert Warmuth
e37737c0c9
2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
...
* vfs/ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
with unexpected side effects (only when HSC_PROXY was
defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
where appropriate.
(dir_load): Do not hard code the directory cache timeout to 10
seconds. Instead use the setting from Options/Virtual VFS ...
* vfs/fish.c (file_store): honour changed semantics for return value
(on error -1 is expected).
* vfs/ftpfs.c (file_store): dito
* gtkedit/editcmd.c (edit_replace_prompt): fix incorrect
initialization of array of structure (gcc version 2.96 20000131
chokes on it).
* lib/mc.hint: C-y and not C-u can be used to insert text in input
lines (e. g. text which has been deleted with M-d).
* configure.in: Fix the extfs-configure-fragment-in-final-output bug
* src/main.c (parse_control_file): add missing right parentheses
* src/boxes.c: fix incorrect initialization of array of structure (gcc
version 2.96 20000131 chokes on it).
2000-02-23 07:43:14 +00:00
Pavel Machek
5d240399be
2000-02-22 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
* cpio.c: added. Thanx to Jan Hudec <bulb@centrum.cz>, who wrote
it using code from tarfs.
2000-02-22 18:21:41 +00:00
Pavel Machek
63554e21ec
y2k fixes for uzip
2000-02-21 11:41:36 +00:00
Pavel Machek
d332550407
Fixed error where relative paths were errorneously used.
2000-02-03 21:59:04 +00:00
Pavel Machek
06542c693a
Added missing prototype.
2000-02-02 16:59:19 +00:00
Pavel Machek
aa6cbcbc89
2000-01-31 Andrew V. Samoilov <sav@bcs.zp.ua>
...
* direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
for broken symlinks like 2001 -> The Space Oddysea.
2000-01-31 13:48:00 +00:00
Pavel Machek
28eb60242d
ftpfs can not handle homes nicely. Is there good way to solve this?
2000-01-24 12:35:52 +00:00
Pavel Machek
b028dbad2e
Small cleanup in extfs.c
2000-01-13 15:15:42 +00:00
Pavel Machek
dcb64cee6d
2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
...
* ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
from Andrew V. Samoilov
2000-01-12 23:45:51 +00:00
Miguel de Icaza
f414f394d1
2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
...
* extfs/deb.in: Change to the deb vfs. tar has changed, and
depending on the version, it saves files as "./filename" or
"filename".
2000-01-02 23:50:56 +00:00
Miguel de Icaza
32955de6bf
2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
...
* From debian: added deba, debd, dpkg, apt script file systems.
2000-01-02 23:48:55 +00:00
Pavel Roskin
36facc201c
vfs/vfs.h: use #warning only for gcc. Not all compilers
...
understand it
src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
1999-12-22 04:04:23 +00:00