Modes on dirs were decimal by mistake.
Submitted by: joerg
This commit is contained in:
parent
06643071e5
commit
15a9992ca2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7338
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: ctm_scan.c,v 1.7 1994/12/03 22:54:04 phk Exp $
|
||||
* $Id: ctm_scan.c,v 1.8 1995/03/19 21:26:00 phk Exp $
|
||||
*
|
||||
*/
|
||||
#include <stdio.h>
|
||||
@ -82,7 +82,7 @@ Do(char *path)
|
||||
switch(st.st_mode & S_IFMT) {
|
||||
case S_IFDIR:
|
||||
if(!CheckMode) {
|
||||
i = printf("d %s %d %lu %lu - - -\n",
|
||||
i = printf("d %s %o %lu %lu - - -\n",
|
||||
buf,st.st_mode & (~S_IFMT),st.st_uid,st.st_gid);
|
||||
if(!i)
|
||||
exit(-1);
|
||||
|
Loading…
Reference in New Issue
Block a user