فهرست منبع

fix wrong programming language ;-) and copy'n'paste bug

Thomas Lotterer 20 سال پیش
والد
کامیت
4ef5d9f123
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      ngircd/ngircd.patch

+ 2 - 2
ngircd/ngircd.patch

@@ -6,7 +6,7 @@ Index: src/ngircd/ngircd.c
  	NGIRCd_Sniffer = FALSE;
  #endif
 +#ifdef PID_FILE
-+	NGIRCd_PidFile[0] = '/dev/null';
++	strlcpy( NGIRCd_PidFile, "/dev/null", sizeof( NGIRCd_PidFile ));
 +#endif
  	strlcpy( NGIRCd_ConfFile, SYSCONFDIR, sizeof( NGIRCd_ConfFile ));
  	strlcat( NGIRCd_ConfFile, CONFIG_FILE, sizeof( NGIRCd_ConfFile ));
@@ -44,7 +44,7 @@ Index: src/ngircd/ngircd.c
 +              old_umask = umask((mode_t) 0022);
 +              pid = getpid();
 +              if ((fp = fopen(NGIRCd_PidFile, "w")) == NULL)
-+               syslog(LOG_ERR, "cannot write PID file '%s'", PID_FILE);
++               syslog(LOG_ERR, "cannot write PID file '%s'", NGIRCd_PidFile);
 +              fprintf(fp, "%ld\n", (long)pid);
 +              fclose(fp);
 +              umask(old_umask);