| 664 | } |
| 665 | |
| 666 | static bool |
| 667 | testSetuid(const char *filename) |
| 668 | { |
| 669 | if (Util::isSetuid(filename) && |
| 670 | strcmp(filename, "screen") != 0 && strstr(filename, "/screen") == NULL) { |
| 671 | static const char *theSetuidWarning = |
| 672 | "\n" |
| 673 | "**** WARNING: This process has the setuid or setgid bit set. This is\n" |
| 674 | "*** incompatible with the use by DMTCP of LD_PRELOAD. The process\n" |
| 675 | "*** will not be checkpointed by DMTCP. Continuing and hoping\n" |
| 676 | "*** for the best. For some programs, you may wish to\n" |
| 677 | "*** compile your own private copy, without using setuid permission.\n"; |
| 678 | |
| 679 | JASSERT_STDERR << theSetuidWarning; |
| 680 | sleep(3); |
| 681 | return true; |
| 682 | } |
| 683 | return false; |
| 684 | } |
| 685 | |
| 686 | void |
| 687 | testStaticallyLinked(const char *pathname) |