Files
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

29 lines
737 B
Diff

Upstream-Status: Inappropriate [1]
[1] Not the author, the patch is from:
http://vault.centos.org/5.8/os/SRPMS/rdist-6.1.5-44.src.rpm
--- rdist-6.1.5/src/server.c.mkstemp 2004-05-25 14:29:37.279312752 +0200
+++ rdist-6.1.5/src/server.c 2004-05-25 14:31:27.050744340 +0200
@@ -1479,11 +1479,18 @@
*file = '/';
}
fd = mkstemp(new);
- if (fd < 0) {
+ /*
+ * Don't consider it a fatal error if mkstemp() fails
+ * because parent directory didn't exist. (Missing
+ * parents are created later (in recvfile())
+ */
+ if ((fd < 0) && (errno != ENOENT)) {
error("Cannot set file name.");
return;
+ } else if (fd >= 0) {
+ close(fd);
+ unlink(new); /* Or symlink() will fail */
}
- close(fd);
}
/*