mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
* vfs/vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string which indicate a file with extented attributes (ACL) Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de> * src/cmd.c (dirsizes_cmd): Quote characters with a special meaning when passing it to du.
This commit is contained in:
parent
beff48b8e0
commit
414c7569f2
@ -1,3 +1,8 @@
|
||||
Wed Nov 25 22:16:19 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* cmd.c (dirsizes_cmd): Quote characters with a special meaning
|
||||
when passing it to du.
|
||||
|
||||
1998-11-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* dlg.c (dlg_try_hotkey): Removed unused declaration of input_event.
|
||||
|
@ -1364,7 +1364,11 @@ void dirsizes_cmd (void)
|
||||
for (i = 0; i < panel->count; i++)
|
||||
if (S_ISDIR (panel->dir.list [i].buf.st_mode) &&
|
||||
strcmp (panel->dir.list [i].fname, "..")) {
|
||||
strcpy (p, panel->dir.list [i].fname);
|
||||
/* The quotes will be removed from the shell when invoking
|
||||
du, i.e. no need to remove quotes when reading the
|
||||
directory sizes from du. */
|
||||
strcpy (p, r = name_quote (panel->dir.list [i].fname, 0));
|
||||
free (r);
|
||||
p = strchr (p, 0);
|
||||
*(p++) = ' ';
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
|
||||
|
||||
* vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
|
||||
which indicate a file with extented attributes (ACL)
|
||||
|
||||
Mon Nov 23 21:19:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks
|
||||
|
@ -1499,10 +1499,14 @@ vfs_parse_ls_lga (char *p, struct stat *s, char **filename, char **linkname)
|
||||
s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR);
|
||||
p += 9;
|
||||
} else {
|
||||
if ((i = vfs_parse_filemode(p)) ==-1)
|
||||
if ((i = vfs_parse_filemode(p)) == -1)
|
||||
goto error;
|
||||
s->st_mode |= i;
|
||||
p += 9;
|
||||
|
||||
/* This is for an extra ACL attribute (HP-UX) */
|
||||
if (*p == '+')
|
||||
p++;
|
||||
}
|
||||
|
||||
free(p_copy);
|
||||
|
Loading…
Reference in New Issue
Block a user