mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Use octal constants.
Published in <sxsr8yy1dk6.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
83fe8f3597
commit
b4b33b5afc
@ -1,3 +1,10 @@
|
||||
2001-04-12 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* ftp-ls.c (ftp_parse_unix_ls): Use octal constants for
|
||||
permissions. A compiler that doesn't accept octal constants is
|
||||
seriously broken and shouldn't be used -- octal constants were
|
||||
present in K&R C!
|
||||
|
||||
2001-01-20 Karl Eichwalder <ke@suse.de>
|
||||
|
||||
* Makefile.in: Provide and use DESTDIR according to the Coding
|
||||
|
13
src/ftp-ls.c
13
src/ftp-ls.c
@ -155,15 +155,16 @@ ftp_parse_unix_ls (const char *file, int ignore_perms)
|
||||
switch (cur.type)
|
||||
{
|
||||
case FT_PLAINFILE:
|
||||
cur.perms = 420;
|
||||
cur.perms = 0644;
|
||||
break;
|
||||
case FT_DIRECTORY:
|
||||
cur.perms = 493;
|
||||
cur.perms = 0755;
|
||||
break;
|
||||
default:
|
||||
cur.perms = 1023;
|
||||
/*cur.perms = 1023;*/ /* #### What is this? --hniksic */
|
||||
cur.perms = 0644;
|
||||
}
|
||||
DEBUGP (("implicite perms %0o; ", cur.perms));
|
||||
DEBUGP (("implicit perms %0o; ", cur.perms));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -489,14 +490,14 @@ ftp_parse_winnt_ls (const char *file)
|
||||
{
|
||||
cur.type = FT_DIRECTORY;
|
||||
cur.size = 0;
|
||||
cur.perms = 493; /* my gcc does not like 0755 ?? */
|
||||
cur.perms = 0755;
|
||||
DEBUGP(("Directory\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
cur.type = FT_PLAINFILE;
|
||||
cur.size = atoi(tok);
|
||||
cur.perms = 420; /* 0664 octal */
|
||||
cur.perms = 0644;
|
||||
DEBUGP(("File, size %ld bytes\n", cur.size));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user