OpenCoverage

modechange.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/modechange.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static mode_t-
4octal_to_mode (unsigned int octal)-
5{-
6-
7-
8 return
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
((
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
9 04000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
10 == 04000 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
11 02000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
12 == 02000 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
13 01000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
14 == 01000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
15 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
16 0400
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
17 == 00400 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
18 0200
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
19 == 00200 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
20 0100
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
21 == 00100
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
22 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
23 (0400 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
24 == 00040 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
25 (0200 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
26 == 00020 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
27 (0100 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
28 == 00010
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
29 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
30 ((0400 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
31 == 00004 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
32 ((0200 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
33 == 00002 &&
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
34 ((0100 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
35 == 00001)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
36 ? octal
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
37 : (mode_t) ((octal & 04000 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
38 04000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
39 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
40 | (octal & 02000 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
41 02000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
42 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
43 | (octal & 01000 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
44 01000
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
45 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
46 | (octal & 00400 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
47 0400
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
48 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
49 | (octal & 00200 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
50 0200
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
51 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
52 | (octal & 00100 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
53 0100
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
54 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
55 | (octal & 00040 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
56 (0400 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
57 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
58 | (octal & 00020 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
59 (0200 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
60 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
61 | (octal & 00010 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
62 (0100 >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
63 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
64 | (octal & 00004 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
65 ((0400 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
66 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
67 | (octal & 00002 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
68 ((0200 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
69 : 0)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
70 | (octal & 00001 ?
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
71 ((0100 >> 3) >> 3)
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
72 : 0)));
executed 89 times by 3 tests: return (( 04000 == 04000 && 02000 == 02000 && 01000 == 01000 && 0400 == 00400 && 0200 == 00200 && 0100 == 00100 && (0400 >> 3) == 00040 && (0200 >> 3) == 00020 && (0100 >> 3) == 00010 && ((0400 >> 3) >> 3) == 00004 && ((0200 >> 3) >> 3) == 00002 && ((0100...100 ? 0100 : 0) | (octal & 00040 ? (0400 >> 3) : 0) | (octal & 00020 ? (0200 >> 3) : 0) | (octal & 00010 ? (0100 >> 3) : 0) | (octal & 00004 ? ((0400 >> 3) >> 3) : 0) | (octal & 00002 ? ((0200 >> 3) >> 3) : 0) | (octal & 00001 ? ((0100 >> 3) >> 3) : 0)));
Executed by:
  • chmod
  • ginstall
  • mkdir
89
73}-
74-
75-
76enum-
77 {-
78-
79 MODE_DONE,-
80-
81-
82 MODE_ORDINARY_CHANGE,-
83-
84-
85-
86-
87 MODE_X_IF_ANY_X,-
88-
89-
90-
91-
92 MODE_COPY_EXISTING-
93 };-
94-
95-
96struct mode_change-
97{-
98 char op;-
99 char flag;-
100 mode_t affected;-
101 mode_t value;-
102 mode_t mentioned;-
103};-
104-
105-
106-
107-
108-
109static struct mode_change *-
110make_node_op_equals (mode_t new_mode, mode_t mentioned)-
111{-
112 struct mode_change *p = xmalloc (2 * sizeof *p);-
113 p->op = '=';-
114 p->flag = MODE_ORDINARY_CHANGE;-
115 p->affected = (-
116 04000 -
117 | -
118 02000 -
119 | -
120 01000 -
121 | -
122 (0400|0200|0100) -
123 | -
124 ((0400|0200|0100) >> 3) -
125 | -
126 (((0400|0200|0100) >> 3) >> 3)-
127 );-
128 p->value = new_mode;-
129 p->mentioned = mentioned;-
130 p[1].flag = MODE_DONE;-
131 return
executed 69 times by 3 tests: return p;
Executed by:
  • chmod
  • ginstall
  • mkdir
p;
executed 69 times by 3 tests: return p;
Executed by:
  • chmod
  • ginstall
  • mkdir
69
132}-
133struct mode_change *-
134mode_compile (char const *mode_string)-
135{-
136-
137 struct mode_change *mc;-
138 size_t used = 0;-
139 char const *p;-
140-
141 if ('0' <= *mode_string
'0' <= *mode_stringDescription
TRUEevaluated 737 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 49 times by 1 test
Evaluated by:
  • chmod
&& *
*mode_string < '8'Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 666 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
mode_string < '8'
*mode_string < '8'Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 666 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
)
49-737
142 {-
143 unsigned int octal_mode = 0;-
144 mode_t mode;-
145 mode_t mentioned;-
146-
147 p = mode_string;-
148 do-
149 {-
150 octal_mode = 8 * octal_mode + *p++ - '0';-
151 if (07777 < octal_mode
07777 < octal_modeDescription
TRUEnever evaluated
FALSEevaluated 186 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
)
0-186
152 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
153 ((void *)0)
never executed: return ((void *)0) ;
0
154 ;
never executed: return ((void *)0) ;
0
155 }
executed 186 times by 3 tests: end of block
Executed by:
  • chmod
  • ginstall
  • mkdir
186
156 while ('0' <= *p
'0' <= *pDescription
TRUEevaluated 115 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 71 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
&& *
*p < '8'Description
TRUEevaluated 115 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEnever evaluated
p < '8'
*p < '8'Description
TRUEevaluated 115 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEnever evaluated
);
0-115
157-
158 if (*
*pDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 69 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
p
*pDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 69 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
)
2-69
159 return
executed 2 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
executed 2 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
2
160 ((void *)0)
executed 2 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
2
161 ;
executed 2 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
2
162-
163 mode = octal_to_mode (octal_mode);-
164 mentioned = (p - mode_string < 5
p - mode_string < 5Description
TRUEevaluated 67 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 2 times by 1 test
Evaluated by:
  • chmod
2-67
165 ? (mode & (-
166 04000 -
167 | -
168 02000-
169 )) | -
170 01000 -
171 | -
172 ((0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3))-
173 -
174 : (-
175 04000 -
176 | -
177 02000 -
178 | -
179 01000 -
180 | -
181 (0400|0200|0100) -
182 | -
183 ((0400|0200|0100) >> 3) -
184 | -
185 (((0400|0200|0100) >> 3) >> 3)-
186 ));-
187 return
executed 69 times by 3 tests: return make_node_op_equals (mode, mentioned);
Executed by:
  • chmod
  • ginstall
  • mkdir
make_node_op_equals (mode, mentioned);
executed 69 times by 3 tests: return make_node_op_equals (mode, mentioned);
Executed by:
  • chmod
  • ginstall
  • mkdir
69
188 }-
189-
190-
191 {-
192 size_t needed = 1;-
193 for (p = mode_string; *
*pDescription
TRUEevaluated 3432 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 715 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p
*pDescription
TRUEevaluated 3432 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 715 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
; p++)
715-3432
194 needed += (*
*p == '='Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3364 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '='
*p == '='Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3364 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
|| *
*p == '+'Description
TRUEevaluated 603 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 2761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '+'
*p == '+'Description
TRUEevaluated 603 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 2761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
|| *
*p == '-'Description
TRUEevaluated 91 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 2670 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '-'
*p == '-'Description
TRUEevaluated 91 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 2670 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
);
executed 3432 times by 2 tests: needed += (*p == '=' || *p == '+' || *p == '-');
Executed by:
  • chmod
  • mkdir
68-3432
195 mc = xnmalloc (needed, sizeof *mc);-
196 }-
197-
198-
199-
200 for (p = mode_string; ; p++)-
201 {-
202-
203 mode_t affected = 0;-
204-
205-
206 for (;; p++)-
207 switch (*p)-
208 {-
209 default
executed 3 times by 1 test: default:
Executed by:
  • chmod
:
executed 3 times by 1 test: default:
Executed by:
  • chmod
3
210 goto
executed 3 times by 1 test: goto invalid;
Executed by:
  • chmod
invalid;
executed 3 times by 1 test: goto invalid;
Executed by:
  • chmod
3
211 case
executed 591 times by 1 test: case 'u':
Executed by:
  • chmod
'u':
executed 591 times by 1 test: case 'u':
Executed by:
  • chmod
591
212 affected |= -
213 04000 -
214 | -
215 (0400|0200|0100)-
216 ;-
217 break;
executed 591 times by 1 test: break;
Executed by:
  • chmod
591
218 case
executed 25 times by 1 test: case 'g':
Executed by:
  • chmod
'g':
executed 25 times by 1 test: case 'g':
Executed by:
  • chmod
25
219 affected |= -
220 02000 -
221 | -
222 ((0400|0200|0100) >> 3)-
223 ;-
224 break;
executed 25 times by 1 test: break;
Executed by:
  • chmod
25
225 case
executed 17 times by 1 test: case 'o':
Executed by:
  • chmod
'o':
executed 17 times by 1 test: case 'o':
Executed by:
  • chmod
17
226 affected |= -
227 01000 -
228 | -
229 (((0400|0200|0100) >> 3) >> 3)-
230 ;-
231 break;
executed 17 times by 1 test: break;
Executed by:
  • chmod
17
232 case
executed 46 times by 2 tests: case 'a':
Executed by:
  • chmod
  • mkdir
'a':
executed 46 times by 2 tests: case 'a':
Executed by:
  • chmod
  • mkdir
46
233 affected |= (-
234 04000 -
235 | -
236 02000 -
237 | -
238 01000 -
239 | -
240 (0400|0200|0100) -
241 | -
242 ((0400|0200|0100) >> 3) -
243 | -
244 (((0400|0200|0100) >> 3) >> 3)-
245 );-
246 break;
executed 46 times by 2 tests: break;
Executed by:
  • chmod
  • mkdir
46
247 case
executed 68 times by 1 test: case '=':
Executed by:
  • chmod
'=':
executed 68 times by 1 test: case '=':
Executed by:
  • chmod
case
executed 602 times by 1 test: case '+':
Executed by:
  • chmod
'+':
executed 602 times by 1 test: case '+':
Executed by:
  • chmod
case
executed 83 times by 2 tests: case '-':
Executed by:
  • chmod
  • mkdir
'-':
executed 83 times by 2 tests: case '-':
Executed by:
  • chmod
  • mkdir
68-602
248 goto
executed 753 times by 2 tests: goto no_more_affected;
Executed by:
  • chmod
  • mkdir
no_more_affected;
executed 753 times by 2 tests: goto no_more_affected;
Executed by:
  • chmod
  • mkdir
753
249 }-
250 no_more_affected:
code before this statement never executed: no_more_affected:
;
0
251-
252 do-
253 {-
254 char op = *p++;-
255 mode_t value;-
256 mode_t mentioned = 0;-
257 char flag = MODE_COPY_EXISTING;-
258 struct mode_change *change;-
259-
260 switch (*p)-
261 {-
262 case
never executed: case '0':
'0':
never executed: case '0':
case
never executed: case '1':
'1':
never executed: case '1':
case
executed 15 times by 1 test: case '2':
Executed by:
  • chmod
'2':
executed 15 times by 1 test: case '2':
Executed by:
  • chmod
case
never executed: case '3':
'3':
never executed: case '3':
0-15
263 case
never executed: case '4':
'4':
never executed: case '4':
case
executed 2 times by 1 test: case '5':
Executed by:
  • chmod
'5':
executed 2 times by 1 test: case '5':
Executed by:
  • chmod
case
never executed: case '6':
'6':
never executed: case '6':
case
executed 3 times by 1 test: case '7':
Executed by:
  • chmod
'7':
executed 3 times by 1 test: case '7':
Executed by:
  • chmod
0-3
264 {-
265 unsigned int octal_mode = 0;-
266-
267 do-
268 {-
269 octal_mode = 8 * octal_mode + *p++ - '0';-
270 if (07777 < octal_mode
07777 < octal_modeDescription
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • chmod
)
0-79
271 goto
never executed: goto invalid;
invalid;
never executed: goto invalid;
0
272 }
executed 79 times by 1 test: end of block
Executed by:
  • chmod
79
273 while ('0' <= *p
'0' <= *pDescription
TRUEevaluated 59 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 20 times by 1 test
Evaluated by:
  • chmod
&& *
*p < '8'Description
TRUEevaluated 59 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
p < '8'
*p < '8'Description
TRUEevaluated 59 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
);
0-59
274-
275 if (affected
affectedDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • chmod
|| (*
*pDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 19 times by 1 test
Evaluated by:
  • chmod
p
*pDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 19 times by 1 test
Evaluated by:
  • chmod
&& *
*p != ','Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
p != ','
*p != ','Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
))
0-20
276 goto
never executed: goto invalid;
invalid;
never executed: goto invalid;
0
277 affected = mentioned = (-
278 04000 -
279 | -
280 02000 -
281 | -
282 01000 -
283 | -
284 (0400|0200|0100) -
285 | -
286 ((0400|0200|0100) >> 3) -
287 | -
288 (((0400|0200|0100) >> 3) >> 3)-
289 );-
290 value = octal_to_mode (octal_mode);-
291 flag = MODE_ORDINARY_CHANGE;-
292 break;
executed 20 times by 1 test: break;
Executed by:
  • chmod
20
293 }-
294-
295 case
executed 3 times by 1 test: case 'u':
Executed by:
  • chmod
'u':
executed 3 times by 1 test: case 'u':
Executed by:
  • chmod
3
296-
297-
298 value = -
299 (0400|0200|0100)-
300 ;-
301 p++;-
302 break;
executed 3 times by 1 test: break;
Executed by:
  • chmod
3
303 case
executed 3 times by 1 test: case 'g':
Executed by:
  • chmod
'g':
executed 3 times by 1 test: case 'g':
Executed by:
  • chmod
3
304-
305-
306 value = -
307 ((0400|0200|0100) >> 3)-
308 ;-
309 p++;-
310 break;
executed 3 times by 1 test: break;
Executed by:
  • chmod
3
311 case
executed 2 times by 1 test: case 'o':
Executed by:
  • chmod
'o':
executed 2 times by 1 test: case 'o':
Executed by:
  • chmod
2
312-
313-
314 value = -
315 (((0400|0200|0100) >> 3) >> 3)-
316 ;-
317 p++;-
318 break;
executed 2 times by 1 test: break;
Executed by:
  • chmod
2
319-
320 default
executed 733 times by 2 tests: default:
Executed by:
  • chmod
  • mkdir
:
executed 733 times by 2 tests: default:
Executed by:
  • chmod
  • mkdir
733
321 value = 0;-
322 flag = MODE_ORDINARY_CHANGE;-
323-
324 for (;; p++)-
325 switch (*p)-
326 {-
327 case
executed 597 times by 2 tests: case 'r':
Executed by:
  • chmod
  • mkdir
'r':
executed 597 times by 2 tests: case 'r':
Executed by:
  • chmod
  • mkdir
597
328 value |= -
329 0400 -
330 | -
331 (0400 >> 3) -
332 | -
333 ((0400 >> 3) >> 3)-
334 ;-
335 break;
executed 597 times by 2 tests: break;
Executed by:
  • chmod
  • mkdir
597
336 case
executed 634 times by 1 test: case 'w':
Executed by:
  • chmod
'w':
executed 634 times by 1 test: case 'w':
Executed by:
  • chmod
634
337 value |= -
338 0200 -
339 | -
340 (0200 >> 3) -
341 | -
342 ((0200 >> 3) >> 3)-
343 ;-
344 break;
executed 634 times by 1 test: break;
Executed by:
  • chmod
634
345 case
executed 607 times by 1 test: case 'x':
Executed by:
  • chmod
'x':
executed 607 times by 1 test: case 'x':
Executed by:
  • chmod
607
346 value |= -
347 0100 -
348 | -
349 (0100 >> 3) -
350 | -
351 ((0100 >> 3) >> 3)-
352 ;-
353 break;
executed 607 times by 1 test: break;
Executed by:
  • chmod
607
354 case
executed 4 times by 1 test: case 'X':
Executed by:
  • chmod
'X':
executed 4 times by 1 test: case 'X':
Executed by:
  • chmod
4
355 flag = MODE_X_IF_ANY_X;-
356 break;
executed 4 times by 1 test: break;
Executed by:
  • chmod
4
357 case
executed 10 times by 1 test: case 's':
Executed by:
  • chmod
's':
executed 10 times by 1 test: case 's':
Executed by:
  • chmod
10
358-
359 value |= -
360 04000 -
361 | -
362 02000-
363 ;-
364 break;
executed 10 times by 1 test: break;
Executed by:
  • chmod
10
365 case
executed 6 times by 1 test: case 't':
Executed by:
  • chmod
't':
executed 6 times by 1 test: case 't':
Executed by:
  • chmod
6
366-
367 value |= -
368 01000-
369 ;-
370 break;
executed 6 times by 1 test: break;
Executed by:
  • chmod
6
371 default
executed 733 times by 2 tests: default:
Executed by:
  • chmod
  • mkdir
:
executed 733 times by 2 tests: default:
Executed by:
  • chmod
  • mkdir
733
372 goto
executed 733 times by 2 tests: goto no_more_values;
Executed by:
  • chmod
  • mkdir
no_more_values;
executed 733 times by 2 tests: goto no_more_values;
Executed by:
  • chmod
  • mkdir
733
373 }-
374 no_more_values:
code before this statement never executed: no_more_values:
;
0
375 }
executed 733 times by 2 tests: end of block
Executed by:
  • chmod
  • mkdir
733
376-
377 change = &mc[used++];-
378 change->op = op;-
379 change->flag = flag;-
380 change->affected = affected;-
381 change->value = value;-
382 change->mentioned =-
383 (mentioned
mentionedDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 741 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
? mentioned : affected
affectedDescription
TRUEevaluated 671 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 70 times by 1 test
Evaluated by:
  • chmod
? affected & value : value);
20-741
384 }
executed 761 times by 2 tests: end of block
Executed by:
  • chmod
  • mkdir
761
385 while (*
*p == '='Description
TRUEnever evaluated
FALSEevaluated 761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '='
*p == '='Description
TRUEnever evaluated
FALSEevaluated 761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
|| *
*p == '+'Description
TRUEnever evaluated
FALSEevaluated 761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '+'
*p == '+'Description
TRUEnever evaluated
FALSEevaluated 761 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
|| *
*p == '-'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 753 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
p == '-'
*p == '-'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • chmod
FALSEevaluated 753 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
);
0-761
386-
387 if (*
*p != ','Description
TRUEevaluated 712 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 41 times by 1 test
Evaluated by:
  • chmod
p != ','
*p != ','Description
TRUEevaluated 712 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 41 times by 1 test
Evaluated by:
  • chmod
)
41-712
388 break;
executed 712 times by 2 tests: break;
Executed by:
  • chmod
  • mkdir
712
389 }
executed 41 times by 1 test: end of block
Executed by:
  • chmod
41
390-
391 if (*
*p == 0Description
TRUEevaluated 711 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
p == 0
*p == 0Description
TRUEevaluated 711 times by 2 tests
Evaluated by:
  • chmod
  • mkdir
FALSEevaluated 1 time by 1 test
Evaluated by:
  • chmod
)
1-711
392 {-
393 mc[used].flag = MODE_DONE;-
394 return
executed 711 times by 2 tests: return mc;
Executed by:
  • chmod
  • mkdir
mc;
executed 711 times by 2 tests: return mc;
Executed by:
  • chmod
  • mkdir
711
395 }-
396-
397invalid:
code before this statement executed 1 time by 1 test: invalid:
Executed by:
  • chmod
1
398 free (mc);-
399 return
executed 4 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
executed 4 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
4
400 ((void *)0)
executed 4 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
4
401 ;
executed 4 times by 1 test: return ((void *)0) ;
Executed by:
  • chmod
4
402}-
403-
404-
405-
406-
407struct mode_change *-
408mode_create_from_ref (const char *ref_file)-
409{-
410 struct stat ref_stats;-
411-
412 if (stat (ref_file, &ref_stats) != 0
stat (ref_file...ef_stats) != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
413 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
414 ((void *)0)
never executed: return ((void *)0) ;
0
415 ;
never executed: return ((void *)0) ;
0
416 return
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
make_node_op_equals (ref_stats.st_mode, (
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
417 04000
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
418 |
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
419 02000
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
420 |
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
421 01000
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
422 |
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
423 (0400|0200|0100)
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
424 |
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
425 ((0400|0200|0100) >> 3)
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
426 |
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
427 (((0400|0200|0100) >> 3) >> 3)
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
428 ));
never executed: return make_node_op_equals (ref_stats.st_mode, ( 04000 | 02000 | 01000 | (0400|0200|0100) | ((0400|0200|0100) >> 3) | (((0400|0200|0100) >> 3) >> 3) ));
0
429}-
430mode_t-
431mode_adjust (mode_t oldmode, -
432 _Bool -
433 dir, mode_t umask_value,-
434 struct mode_change const *changes, mode_t *pmode_bits)-
435{-
436-
437 mode_t newmode = oldmode & (-
438 04000 -
439 | -
440 02000 -
441 | -
442 01000 -
443 | -
444 (0400|0200|0100) -
445 | -
446 ((0400|0200|0100) >> 3) -
447 | -
448 (((0400|0200|0100) >> 3) >> 3)-
449 );-
450-
451-
452 mode_t mode_bits = 0;-
453-
454 for (; changes->flag != MODE_DONE
changes->flag != MODE_DONEDescription
TRUEevaluated 291067 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 291017 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
; changes++)
291017-291067
455 {-
456 mode_t affected = changes->affected;-
457 mode_t omit_change =-
458 (dir
dirDescription
TRUEevaluated 43014 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 248053 times by 2 tests
Evaluated by:
  • chmod
  • ginstall
?
43014-248053
459 04000 -
460 | -
461 02000 -
462 : 0) & ~ changes->mentioned;-
463 mode_t value = changes->value;-
464-
465 switch (changes->flag)-
466 {-
467 case
executed 291056 times by 3 tests: case MODE_ORDINARY_CHANGE:
Executed by:
  • chmod
  • ginstall
  • mkdir
MODE_ORDINARY_CHANGE:
executed 291056 times by 3 tests: case MODE_ORDINARY_CHANGE:
Executed by:
  • chmod
  • ginstall
  • mkdir
291056
468 break;
executed 291056 times by 3 tests: break;
Executed by:
  • chmod
  • ginstall
  • mkdir
291056
469-
470 case
executed 7 times by 1 test: case MODE_COPY_EXISTING:
Executed by:
  • chmod
MODE_COPY_EXISTING:
executed 7 times by 1 test: case MODE_COPY_EXISTING:
Executed by:
  • chmod
7
471-
472 value &= newmode;-
473-
474-
475 value |= ((value & (
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
476 0400
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
477 |
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
478 (0400 >> 3)
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
479 |
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
480 ((0400 >> 3) >> 3)
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
481 )
value & ( 0400... >> 3) >> 3) )Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • chmod
FALSEnever evaluated
0-7
482 ? -
483 0400 -
484 | -
485 (0400 >> 3) -
486 | -
487 ((0400 >> 3) >> 3) -
488 : 0)-
489 | (value & (-
490 0200 -
491 | -
492 (0200 >> 3) -
493 | -
494 ((0200 >> 3) >> 3)-
495 )-
496 ? -
497 0200 -
498 | -
499 (0200 >> 3) -
500 | -
501 ((0200 >> 3) >> 3) -
502 : 0)-
503 | (value & (-
504 0100 -
505 | -
506 (0100 >> 3) -
507 | -
508 ((0100 >> 3) >> 3)-
509 )-
510 ? -
511 0100 -
512 | -
513 (0100 >> 3) -
514 | -
515 ((0100 >> 3) >> 3) -
516 : 0));-
517 break;
executed 7 times by 1 test: break;
Executed by:
  • chmod
7
518-
519 case
executed 4 times by 1 test: case MODE_X_IF_ANY_X:
Executed by:
  • chmod
MODE_X_IF_ANY_X:
executed 4 times by 1 test: case MODE_X_IF_ANY_X:
Executed by:
  • chmod
4
520-
521-
522 if ((
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
newmode & (
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
523 0100
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
524 |
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
525 (0100 >> 3)
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
526 |
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
527 ((0100 >> 3) >> 3)
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
1-3
528 )) | dir
(newmode & ( 0...>> 3) )) | dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • chmod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • chmod
)
1-3
529 value |=
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
530 0100
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
531 |
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
532 (0100 >> 3)
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
533 |
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
534 ((0100 >> 3) >> 3)
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
535 ;
executed 1 time by 1 test: value |= 0100 | (0100 >> 3) | ((0100 >> 3) >> 3) ;
Executed by:
  • chmod
1
536 break;
executed 4 times by 1 test: break;
Executed by:
  • chmod
4
537 }-
538-
539-
540-
541-
542 value &= (affected
affectedDescription
TRUEevaluated 290983 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 84 times by 1 test
Evaluated by:
  • chmod
? affected : ~umask_value) & ~ omit_change;
84-290983
543-
544 switch (changes->op)-
545 {-
546 case
executed 200160 times by 3 tests: case '=':
Executed by:
  • chmod
  • ginstall
  • mkdir
'=':
executed 200160 times by 3 tests: case '=':
Executed by:
  • chmod
  • ginstall
  • mkdir
200160
547-
548-
549-
550 {-
551 mode_t preserved = (affected
affectedDescription
TRUEevaluated 200152 times by 3 tests
Evaluated by:
  • chmod
  • ginstall
  • mkdir
FALSEevaluated 8 times by 1 test
Evaluated by:
  • chmod
? ~affected : 0) | omit_change;
8-200152
552 mode_bits |= (-
553 04000 -
554 | -
555 02000 -
556 | -
557 01000 -
558 | -
559 (0400|0200|0100) -
560 | -
561 ((0400|0200|0100) >> 3) -
562 | -
563 (((0400|0200|0100) >> 3) >> 3)-
564 ) & ~preserved;-
565 newmode = (newmode & preserved) | value;-
566 break;
executed 200160 times by 3 tests: break;
Executed by:
  • chmod
  • ginstall
  • mkdir
200160
567 }-
568-
569 case
executed 90795 times by 1 test: case '+':
Executed by:
  • chmod
'+':
executed 90795 times by 1 test: case '+':
Executed by:
  • chmod
90795
570 mode_bits |= value;-
571 newmode |= value;-
572 break;
executed 90795 times by 1 test: break;
Executed by:
  • chmod
90795
573-
574 case
executed 112 times by 2 tests: case '-':
Executed by:
  • chmod
  • mkdir
'-':
executed 112 times by 2 tests: case '-':
Executed by:
  • chmod
  • mkdir
112
575 mode_bits |= value;-
576 newmode &= ~value;-
577 break;
executed 112 times by 2 tests: break;
Executed by:
  • chmod
  • mkdir
112
578 }-
579 }
executed 291067 times by 3 tests: end of block
Executed by:
  • chmod
  • ginstall
  • mkdir
291067
580-
581 if (pmode_bits
pmode_bitsDescription
TRUEevaluated 17 times by 2 tests
Evaluated by:
  • ginstall
  • mkdir
FALSEevaluated 291000 times by 2 tests
Evaluated by:
  • chmod
  • ginstall
)
17-291000
582 *
executed 17 times by 2 tests: *pmode_bits = mode_bits;
Executed by:
  • ginstall
  • mkdir
pmode_bits = mode_bits;
executed 17 times by 2 tests: *pmode_bits = mode_bits;
Executed by:
  • ginstall
  • mkdir
17
583 return
executed 291017 times by 3 tests: return newmode;
Executed by:
  • chmod
  • ginstall
  • mkdir
newmode;
executed 291017 times by 3 tests: return newmode;
Executed by:
  • chmod
  • ginstall
  • mkdir
291017
584}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2