Commit Graph

870 Commits

Author SHA1 Message Date
Andrew V. Samoilov
1dfc24bd42 2002-12-24 Adam Byrtek <alpha@debian.org>
* extfs/patchfs.in: context diff format support, regular
	expressions precompiled, some minor fixes
2003-01-13 12:07:45 +00:00
Pavel Roskin
325bf57d86 Typo fix. 2002-12-30 23:19:14 +00:00
Andrew V. Samoilov
196dd0c1de * extfs/rpm: Use --nosignature only if rpm supports this. 2002-12-29 09:19:36 +00:00
Pavel Roskin
f2c028ce46 s/can not/cannot/ 2002-12-26 02:21:37 +00:00
Pavel Roskin
9dc4fc6342 * extfs.c (read_archive): Free archive if the "list" command
returned non-zero, return -1.
Initial implemntation from Adam Byrtek <alpha@debian.org>
2002-12-25 21:42:59 +00:00
Pavel Roskin
ddf2ad1612 * direntry.c (vfs_s_open): If the filesystem is read-only,
disable file creation.
2002-12-25 04:57:26 +00:00
Pavel Roskin
423849f74d Partly revert the last change - low-level chdir actually writes to
the "directory" argument, so preserve it.
2002-12-25 04:38:50 +00:00
Pavel Roskin
075d359907 * vfs.c (mc_chdir): Don't change current directory until the
low-level chdir succeeds.
2002-12-25 04:02:34 +00:00
Pavel Roskin
3a377a802d * vfs.c (vfs_name): Eliminate - it's unused and wrong. 2002-12-25 02:47:21 +00:00
Andrew V. Samoilov
6fec66eb87 * extfs/mailfs.in: Quote filename when openning mailbox. 2002-12-24 06:56:16 +00:00
Andrew V. Samoilov
1edcc92829 * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file. 2002-12-24 06:33:46 +00:00
Andrew V. Samoilov
f5dc73aa71 * smbfs.c: Resurrect and use myumask for generated permissions. 2002-12-20 18:16:45 +00:00
Andrew V. Samoilov
b6aa32d9b2 * extfs/patchfs.in: Fix patch size calculation. Use bytes to
count size in bytes, not characters (in multibyte encodings char
can be two or more bytes wide).
2002-12-19 18:20:11 +00:00
Pavel Roskin
1df0641954 * extfs/patchfs.in: Don't rely on tell() - it doesn't always
work on pipes.  Determine patch size by adding together the line
lengths.
2002-12-19 17:36:58 +00:00
Pavel Roskin
6ee35e2c55 * extfs/patchfs.in: Allow diffs with function names after "@@".
Don't consider an empty newline as the end of the diff.
2002-12-19 16:51:04 +00:00
Andrew V. Samoilov
76a86209d4 * extfs/patchfs.in (openread): Use quoted $archive when opening
archives.
(list): Set $archive to quoted $_[0].
2002-12-18 14:31:54 +00:00
Pavel Roskin
1f05866c5e * extfs/rpm: Don't check package signatures - it creates a lot
of noise on stderr if the signature is missing.
2002-12-17 00:32:38 +00:00
Pavel Roskin
1b2f7e7d13 s/Dir cache/Directory cache/
"Dir cache" should be in geek.po :-)
2002-12-16 06:04:02 +00:00
Pavel Roskin
1a4ad10ec8 Comment changes. 2002-12-15 19:38:18 +00:00
Pavel Roskin
90821fb2b8 * extfs/mailfs.in: Fixed bug when opening empty mailbox. Added
proper message size (not number of lines, like before) counting.
2002-12-14 20:05:29 +00:00
Pavel Roskin
5e039bf28f Comment fixes. 2002-12-14 05:31:12 +00:00
Pavel Roskin
9b4e62ef79 * extfs/uha.in (mchafs_list): Don't parse the month, use
DD-MM-YYYY output.
(mchafs_copyout): Use cat, not mv, because the files can be on
different filesystems.  Use "q" and don't suppress stderr.
2002-12-14 05:10:52 +00:00
Pavel Roskin
6c465b4a6f * extfs/ulha.in: Don't suppress stderr. 2002-12-14 04:39:09 +00:00
Pavel Roskin
5773018d1f Add hp48 and uarj. 2002-12-14 04:29:58 +00:00
Pavel Roskin
f7a80d36ba * extfs/uzoo.in: Always use "q" option to avoid processing junk.
Always create symlink, do it in a safer directory.
2002-12-14 04:29:12 +00:00
Pavel Roskin
9a8ba89854 * extfs/uarj.in: New script working with open-source ARJ.
Contributed by Viatcheslav Odintsov.
* extfs/uarj: Remove.
* extfs/hp48: Rename to ...
* extfs/hp48.in: ... this.  It needs awk substitution.
* extfs/Makefile.am: Adjust for the above.
2002-12-14 02:46:03 +00:00
Pavel Roskin
05a0c9236d * extfs/ulha.in: Strengthen quoting. 2002-12-13 08:07:33 +00:00
Pavel Roskin
5c038d2f12 * extfs/uha.in: Strengthen quoting. Remove unnecessary space
after filename.  Update URL.  Use safer temporary directory.
2002-12-13 07:53:20 +00:00
Pavel Roskin
c055823512 * extfs/uarj: New list-only implementation that doesn't need
patched unarj.
* extfs/unarj.diff: Remove.
* extfs/Makefile.am: Remove extfs/unarj.diff.
2002-12-13 07:20:54 +00:00
Pavel Roskin
0b9116d955 Restore setting current time if the date cannot be parsed. 2002-12-13 05:22:09 +00:00
Pavel Roskin
72da5347c4 Fix Y2K problem once again. 2002-12-13 05:08:14 +00:00
Pavel Roskin
84f178c86f * extfs/patchfs.in: "copyin" method added (with compressed files
support).  Files inside archive now have '.diff' extension.
Temporary file not needed any more.  Proper handling of
"/dev/null" filenames, filename heuristics based on diff info
page.  Set files owner and group as the archive.
* extfs/audio.in: CDDB_TIMEOUT variable added.
2002-12-13 04:42:08 +00:00
Pavel Roskin
63faf36f15 * vfs.c (is_dos_date): Allow 4-digit years.
(vfs_parse_filedate): Don't limit length of the year field for
DOS dates, subtract 1900 if necessary.
2002-12-13 00:22:06 +00:00
Pavel Roskin
676c9927d6 Don't document deprecated support for two-digit years. 2002-12-12 17:28:31 +00:00
Pavel Roskin
ec8375764b * extfs/apt.in: Fix Y2K bug.
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
Reported by Adam Byrtek <alpha@debian.org>
2002-12-12 16:15:30 +00:00
Pavel Roskin
4da228c21e Fix formatting of the year. 2002-12-12 16:13:20 +00:00
Pavel Roskin
5ea98ec55f * extfs/patchfs.in: Print 4-digit year. If str2time is not
available, use current time, not 0.
2002-12-12 16:08:34 +00:00
Andrew V. Samoilov
320b62f87e * extfs/urar.in: rar lists directories after files, so sort "list"
command output by names to prevent duplications.
2002-12-12 12:48:30 +00:00
Pavel Roskin
5b24e5dc1b * extfs/urar.in: Strengthen quoting. Don't use full path to rar
and unrar.  Don't redirect stderr to /dev/null.
2002-12-12 09:39:46 +00:00
Pavel Roskin
a0c6db0bca Use "cp -p" to preserve date. 2002-12-12 09:21:35 +00:00
Pavel Roskin
f63f10d684 Don't redirect stderr to /dev/null - it obscures errors. 2002-12-12 09:15:20 +00:00
Pavel Roskin
a50ddb5450 * extfs/uar.in: Simplify "list" command, don't use current year.
Use more careful quoting.
2002-12-12 09:01:40 +00:00
Pavel Roskin
b1c7fda53b Set locale to C.
Add support for bzip2.
Remove redirection of stderr to /dev/null.
2002-12-12 08:34:24 +00:00
Pavel Roskin
3662dd53f2 * extfs/apt.in: Add non-interactive remove using dpkg. 2002-12-12 07:42:29 +00:00
Pavel Roskin
bc9ef16241 Make sure that the output of cd-discid is not empty, exit otherwise. 2002-12-12 07:41:39 +00:00
Pavel Roskin
efbd36d0df Quote "$2" to avoid "test -b" without argument. 2002-12-12 07:33:24 +00:00
Pavel Roskin
92a3d687fd * extfs/apt.in: Add 1 to the month number. Perl localtime()
uses range 0..11 while extfs expects range 1..12.
* extfs/deba.in: Likewise.
* extfs/debd.in: Likewise.
* extfs/dpkg.in: Likewise.
2002-12-11 21:19:43 +00:00
Pavel Roskin
612761577f Fix @PERL@. 2002-12-11 21:10:17 +00:00
Pavel Roskin
071ea38270 Update - ignore Perl scripts. 2002-12-11 20:58:29 +00:00
Pavel Roskin
56be0e7b88 Substitute Perl location in all extfs scripts written in Perl. 2002-12-11 20:57:00 +00:00
Pavel Roskin
a416082753 Update. 2002-12-11 19:26:10 +00:00
Pavel Roskin
adf60b79eb * extfs/audio: Move ...
* extfs/audio.in: ... here.  Add CDDB support.
* extfs/Makefile.am: Adjust for the above.
2002-12-11 19:24:16 +00:00
Pavel Roskin
184ae978c0 * extfs/mailfs: Try using UnixDate() from Date::Manip if it's
available.  Warning fix.
2002-12-11 19:10:05 +00:00
Andrew V. Samoilov
1cfe28ff54 * extfs/patchfs: Use quotemeta() before giving filename to shell. 2002-12-11 11:29:35 +00:00
Andrew V. Samoilov
ec4569b544 * extfs/patchfs: Use quotemeta() before giving filename to shell. 2002-12-11 11:03:25 +00:00
Andrew V. Samoilov
60a725395c * vfs.c (mc_stat): Make first argument const.
(mc_lstat): Likewise.
* vfs.h: Adjust declarations and remove some useless defines.
2002-12-11 09:36:50 +00:00
Pavel Roskin
c2d7ef04dc * extfs/a: Enable Perl warnings. Ignore entries without a date.
Warning fixes.  Don't redirect stderr to /dev/null - it doesn't
mess the screen now.
2002-12-10 21:38:06 +00:00
Andrew V. Samoilov
c63b6b1735 Typos... 2002-12-10 15:32:48 +00:00
Pavel Roskin
d02ca2efc7 typo 2002-12-09 20:16:49 +00:00
Pavel Roskin
0b357d16a3 * extfs/patchfs: Rewritten is Perl. File size is now displayed
properly.
2002-12-09 20:16:34 +00:00
Pavel Roskin
0bb4e479a2 * extfs/ftplist.in: Remove, it's obsoleted by the hotlist.
* extfs/ucpio.in: Remove, it's obsoleted ucpio.c.
* extfs/Makefile.am: Remove all references to them.
* extfs/extfs.ini: Likewise.
2002-12-09 14:16:32 +00:00
Pavel Roskin
0fce236546 * extfs.c (__find_entry): When creating entried for regular
files, set initial permissions to S_IFREG | 0666.  This fixes
problems with viewing and editing newly added files.
2002-12-09 05:21:48 +00:00
Pavel Roskin
9d265c52d6 * extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE. 2002-12-09 05:01:02 +00:00
Pavel Roskin
f71323845c * extfs/uar.in: Fix "copyin" command. 2002-12-09 04:28:00 +00:00
Pavel Roskin
b246f3c7ea s/Could not/Cannot/ 2002-12-08 01:12:18 +00:00
Pavel Roskin
7a16741def * extfs.c (extfs_open): Don't run "copyout" if the file just has
been created or O_TRUNC is given in the flags.
Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
2002-12-07 02:37:58 +00:00
Pavel Roskin
fd44d72c55 * extfs/uar.in: Implement "copyin" and "rm" commands. 2002-12-07 00:02:12 +00:00
Andrew V. Samoilov
4925d2cdd5 * extfs.c: Don't include ../src/profile.h.
(extfs_open): Remove local_filename if copyout fails.
2002-12-06 14:44:51 +00:00
Pavel Roskin
01330333b5 Add fixme. 2002-12-06 06:10:52 +00:00
Pavel Roskin
03b1481cda * extfs.h: Remove "extfsstat" from struct archive - it's unused
outside open_archive().  Adjust the dependencies.
* extfs.c: Make hstat local variable.
2002-12-06 03:14:41 +00:00
Pavel Roskin
271a2564fd * sfs.c: Remove "uid" from struct cachedfile - it's unused now. 2002-12-06 02:18:10 +00:00
Pavel Roskin
b9c6a9b3d1 * vfs.h: Remove vfs_uid and vfs_gid. Fix all dependencies. 2002-12-06 02:14:28 +00:00
Pavel Roskin
a5576742c3 * extfs.c (open_archive): Use open_error_pipe before popen() and
close_error_pipe() if popen() fails to handle stderr.
(read_archive): Use close_error_pipe() after pclose().
2002-12-05 17:05:27 +00:00
Pavel Roskin
5746ba638b * ftpfs.c: Define INADDR_NONE if it's not already defined.
Needed for Solaris 9.
Reported by Roman Dorokhin <dorokhin@cybermail.net>
2002-12-05 14:47:24 +00:00
Pavel Roskin
51c6751434 Comment fix - explain trailing colon. 2002-12-04 06:25:16 +00:00
Andrew V. Samoilov
7b75eaf984 * extfs.c (open_archive): Don't use open_error_pipe() and
close_error_pipe() - it gets stuck on output that exceeds 4
kilobytes.
2002-12-03 12:24:37 +00:00
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
Andrew V. Samoilov
488f984e02 Remove SWATDIR definition 2002-11-29 06:57:36 +00:00
Pavel Roskin
e06b8d8704 Add uzip. 2002-11-28 23:39:50 +00:00
Pavel Roskin
62f3f2d97d * acinclude.m4 (MC_EXTFS_CHECKS): New macro.
(MC_WITH_VFS): Call MC_EXTFS_CHECKS.
* configure.in: Generate vfs/extfs/uzip.
* vfs/extfs/uzip: Move to vfs/extfs/uzip.in.
* vfs/extfs/Makefile.am: Corresponding adjustments.
2002-11-28 22:59:43 +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
a1d4cb2a89 Minor warning fix. 2002-11-15 17:06:46 +00:00
Pavel Roskin
21bfde8acf Minor warning fixes. 2002-11-15 17:02:44 +00:00
Pavel Roskin
dd621c3f36 Warning fixes. 2002-11-15 07:49:39 +00:00
Pavel Roskin
5cb2ef30f3 Fix duplicate declarations. 2002-11-15 06:38:55 +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
Andrew V. Samoilov
3fbf9adabe * samba/param/loadparm.c: Remove PASSWD_PROGRAM, SMB_PASSWD_FILE
and DEFAULT_PASSWD_CHAT support.
* samba/Makefile.in: Likewsise. Remove PRIVATEDIR, PASSWD_FLAGS,
CODEPAGELIST and SCRIPTS variables and yodldocs target.
* samba/configure.in: Remove --with-privatedir.
2002-11-14 12:32:41 +00:00
Pavel Roskin
68fdcd473a Include wtools.h - needed because message() has been moved there. 2002-11-14 07:26:32 +00:00
Andrew V. Samoilov
8ce50e28d7 Remove SMBLOGFILE, NMBLOGFILE and MANDIR 2002-11-13 07:25:46 +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
7197808ece Remove LOCKDIR support 2002-11-12 16:03:16 +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