aports/main/cvs/getcwd.patch
Natanael Copa 1566cc4458 main/cvs: move from community due to git-cvs
needed by git-cvs in main.

reverts commit fe0a75fee2 (main/cvs: move from community)
2025-05-27 12:01:22 +02:00

21 lines
489 B
Diff

Otherwise the checkout on our bamboo-agents fail due to:
"cvs [init aborted]: cannot get working directory: No such file or directory"
This is caused by CVS using its bundled getcwd instead of the musl one.
--- old/lib/xgetcwd.c
+++ new/lib/xgetcwd.c
@@ -21,12 +21,12 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+#include <unistd.h>
#include "xgetcwd.h"
#include <errno.h>
-#include "getcwd.h"
#include "xalloc.h"
/* Return the current directory, newly allocated.