Added filemode check
This commit is contained in:
parent
1500b2a7c2
commit
cbae1f9189
@ -58,6 +58,10 @@ v0.71.0 27-Oct-2004
|
||||
mbnewusr:
|
||||
Rewrote terminal i/o.
|
||||
|
||||
mbfile:
|
||||
In mbfile check added a check for the filemode of the real file
|
||||
in the download area, if it's not 0644 it will be corrected.
|
||||
|
||||
mbsetup:
|
||||
In file transfers edit, removed switches for batch and bidirect
|
||||
protocols, added a switch for internal protocols.
|
||||
|
@ -460,6 +460,14 @@ void CheckArea(long Area)
|
||||
iErrors++;
|
||||
Update = TRUE;
|
||||
}
|
||||
if (stat(newdir, &stb) == 0) {
|
||||
if (stb.st_mode != 0100644) {
|
||||
if (chmod(newdir, 0644) == 0) {
|
||||
Syslog('!', "Fixed filemode area %ld, file %s", Area, fdb.LName);
|
||||
iErrors++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Marker();
|
||||
if (Update) {
|
||||
if (mbsedb_LockFDB(fdb_area, 30)) {
|
||||
|
Reference in New Issue
Block a user