1 --- dip-3.3.7o/main.c.orig Wed Aug 28 16:50:42 1996
2 +++ dip-3.3.7o/main.c Wed Aug 28 16:55:13 1996
4 strncpy(path, argv[optind], sizeof(path) - sizeof(DIP_SFX) + 1);
5 if ((sp = strrchr(path, '/')) != (char *)NULL) sp++;
7 - if (strchr(sp, '.') == (char *)NULL) strcat(path, DIP_SFX);
10 if (setreuid(geteuid(), getuid()) != 0){
13 /* open file with real uid */
14 if ((fp = fopen(path, "r")) == (FILE *)NULL) {
15 - fprintf(stderr, "dip: %s: %s\n", path, strerror(errno));
17 + if (strchr(sp, '.') == (char *)NULL) strcat(path, DIP_SFX);
18 + if ((fp = fopen(path, "r")) == (FILE *)NULL) {
19 + fprintf(stderr, "dip: %s: %s\n", path, strerror(errno));
24 if (setreuid(geteuid(), getuid()) != 0){