fcad622a62
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/tftp.git#70259dc3f4998b138e448b4fcbe44142bc289a89
16 lines
578 B
Diff
16 lines
578 B
Diff
diff -up tftp-hpa-0.49/tftpd/tftpd.c.chk_retcodes tftp-hpa-0.49/tftpd/tftpd.c
|
|
--- tftp-hpa-0.49/tftpd/tftpd.c.chk_retcodes 2009-01-15 15:28:50.000000000 +0100
|
|
+++ tftp-hpa-0.49/tftpd/tftpd.c 2009-01-15 15:31:36.000000000 +0100
|
|
@@ -932,7 +932,10 @@ int main(int argc, char **argv)
|
|
exit(EX_OSERR);
|
|
}
|
|
#ifdef __CYGWIN__
|
|
- chdir("/"); /* Cygwin chroot() bug workaround */
|
|
+ if (chdir("/") < 0) { /* Cygwin chroot() bug workaround */
|
|
+ syslog(LOG_ERR, "chroot: %m");
|
|
+ exit(EX_OSERR);
|
|
+ }
|
|
#endif
|
|
}
|
|
#ifdef HAVE_SETREGID
|