|
@@ -109,7 +109,7 @@ static void notes_change(char *oldnick, char *newnick)
|
|
|
fclose(f);
|
|
fclose(f);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- chmod(s, userfile_perm); /* Use userfile permissions. */
|
|
|
|
|
|
|
+ fixmod(s);
|
|
|
while (!feof(f)) {
|
|
while (!feof(f)) {
|
|
|
fgets(s, 512, f);
|
|
fgets(s, 512, f);
|
|
|
if (!feof(f)) {
|
|
if (!feof(f)) {
|
|
@@ -156,7 +156,7 @@ static void expire_notes()
|
|
|
fclose(f);
|
|
fclose(f);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- chmod(s, userfile_perm); /* Use userfile permissions. */
|
|
|
|
|
|
|
+ fixmod(s);
|
|
|
while (!feof(f)) {
|
|
while (!feof(f)) {
|
|
|
fgets(s, 512, f);
|
|
fgets(s, 512, f);
|
|
|
if (!feof(f)) {
|
|
if (!feof(f)) {
|
|
@@ -285,7 +285,7 @@ int storenote(char *argv1, char *argv2, char *argv3, int idx, char *who, int buf
|
|
|
char *p = NULL, *from = argv1;
|
|
char *p = NULL, *from = argv1;
|
|
|
size_t len = 0;
|
|
size_t len = 0;
|
|
|
|
|
|
|
|
- chmod(notefile, userfile_perm); /* Use userfile permissions. */
|
|
|
|
|
|
|
+ fixmod(notefile);
|
|
|
while ((argv3[0] == '<') || (argv3[0] == '>')) {
|
|
while ((argv3[0] == '<') || (argv3[0] == '>')) {
|
|
|
p = newsplit(&(argv3));
|
|
p = newsplit(&(argv3));
|
|
|
if (*p == '<')
|
|
if (*p == '<')
|
|
@@ -504,7 +504,7 @@ void notes_del(char *hand, char *nick, char *sdl, int idx)
|
|
|
fclose(f);
|
|
fclose(f);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- chmod(s, userfile_perm); /* Use userfile permissions. */
|
|
|
|
|
|
|
+ fixmod(s);
|
|
|
notes_parse(dl, sdl);
|
|
notes_parse(dl, sdl);
|
|
|
while (!feof(f)) {
|
|
while (!feof(f)) {
|
|
|
fgets(s, 512, f);
|
|
fgets(s, 512, f);
|
|
@@ -647,7 +647,7 @@ static int msg_notes(char *nick, char *host, struct userrec *u, char *par)
|
|
|
putlog(LOG_MISC, "*", "* %s", NOTES_NOTEFILE_UNREACHABLE);
|
|
putlog(LOG_MISC, "*", "* %s", NOTES_NOTEFILE_UNREACHABLE);
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
|
- chmod(notefile, userfile_perm); /* Use userfile permissions. */
|
|
|
|
|
|
|
+ fixmod(notefile);
|
|
|
fprintf(f, "%s %s %li %s\n", to, u->handle, now, par);
|
|
fprintf(f, "%s %s %li %s\n", to, u->handle, now, par);
|
|
|
fclose(f);
|
|
fclose(f);
|
|
|
dprintf(DP_HELP, "NOTICE %s :%s\n", nick, NOTES_DELIVERED);
|
|
dprintf(DP_HELP, "NOTICE %s :%s\n", nick, NOTES_DELIVERED);
|