← Commit list

98cb561b5

Ron Yorston
Ron Yorston
2021-08-15
SUCCESS Duration: 151s

Subject

cp: fix build failure with long options disabled

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/cp.c+1 -3
@@ -121,14 +121,12 @@ int cp_main(int argc, char **argv)
int d_flags;
int flags;
int status;
- enum {
#if ENABLE_FEATURE_CP_LONG_OPTIONS
+ enum {
/*OPT_rmdest = FILEUTILS_RMDEST = 1 << FILEUTILS_CP_OPTBITS */
OPT_parents = 1 << (FILEUTILS_CP_OPTBITS+1),
OPT_reflink = 1 << (FILEUTILS_CP_OPTBITS+2),
-#endif
};
-#if ENABLE_FEATURE_CP_LONG_OPTIONS
# if ENABLE_FEATURE_CP_REFLINK
char *reflink = NULL;
# endif