Commit Graph

442 Commits

Author SHA1 Message Date
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
b0593ec1e2 * Make.common.in: Remove obsolete dependency tracking system.
* configure.in: Likewise.
* edit/Makefile.in: Likewise.
* gnome/Makefile.in: Likewise.
* gtkedit/Makefile.in: Likewise.
* slang/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* vfs/Make-mc.in: Likewise.
* src/depend.awk: Remove.
2001-05-27 04:34:12 +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
1eadb1fc3f * 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:26:59 +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
Andrew V. Samoilov
56aef8572f * background.c (real_message_1s, message_1s): third parameter is
used by message () as printf pattern, so "%s" has to be added
  if plain string must be shown but printf conversion
  specification(s) may be there.
* view.c (do_view_init): ditto
* user.c (debug_out): ditto
* utilunux.c (close_error_pipe, check_error_pipe): ditto

* background.[ch], vfs/util-alone.c (message_1s): third parameter
  constified
2001-05-14 19:01:20 +00:00
Andrew V. Samoilov
94fc1dd4e3 .cvsignore: config.cache added 2001-04-23 13:24:44 +00:00
Pavel Roskin
30dc7621d4 * configure.in: Don't install mcserv unless
"--enable-mcserv-install" has heen specified.
Don't quote the first argument in all calls to AM_CONDITIONAL
to work around a bug in Automake 1.4.
* doc/Makefile.am: Use MCSERV_INSTALL conditional.
* vfs/Make-mc.in: Likewise.
2001-04-19 23:20:06 +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
Miguel de Icaza
900d78c30a fix rpm script problem 2001-04-16 17:54:48 +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
Andrew V. Samoilov
0d20e2fa8a * 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
2001-04-09 11:34:15 +00:00
Pavel Roskin
bb912def1a * gtkedit/editcmd.c: Remove support for XView layout attributes.
* gtkedit/editoptions.c: Likewise.
* pc/chmod.c: Likewise.
* pc/drive.c: Likewise.
* src/boxes.c: Likewise.
* src/chmod.c: Likewise.
* src/dlg.c: Likewise.
* src/dlg.h: Likewise.
* src/filegui.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/layout.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/option.c: Likewise.
* src/panelize.c: Likewise.
* src/wtools.c: Likewise.
* src/wtools.h: Likewise.
* vfs/smbfs.c: Likewise.
2001-04-06 21:48:11 +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