View | Details | Raw Unified | Return to bug 235121 | Differences between
and this patch

Collapse All | Expand All

(-)main.c.in (-3 / +3 lines)
Lines 117-123 int main( int argc, char **argv ) Link Here
117
	else
117
	else
118
		/* this probably should never happen */
118
		/* this probably should never happen */
119
		username = "unknown user!";
119
		username = "unknown user!";
120
	progname = strdup(log_make_ident(basename(argv[0])));
120
	progname = strdup(log_make_ident(argv[0]));
121
	log_set_facility(LOG_DAEMON);
121
	log_set_facility(LOG_DAEMON);
122
	log_open();
122
	log_open();
123
123
Lines 154-167 int main( int argc, char **argv ) Link Here
154
	case ENOTDIR:
154
	case ENOTDIR:
155
	case ENOENT:
155
	case ENOENT:
156
		fprintf(stderr, "%s: %s is not an executable file, or "
156
		fprintf(stderr, "%s: %s is not an executable file, or "
157
			"permission denied.\n\n", basename(argv[0]), 
157
			"permission denied.\n\n", argv[0], 
158
			argvec[0]);
158
			argvec[0]);
159
		break;
159
		break;
160
	case EPERM:
160
	case EPERM:
161
		/* this shouldn't happen, as we don't run SUID */
161
		/* this shouldn't happen, as we don't run SUID */
162
		fprintf(stderr, "%s: FS mounted nosuid or process is being "
162
		fprintf(stderr, "%s: FS mounted nosuid or process is being "
163
			"traced\n (and you are not root)\n\n", 
163
			"traced\n (and you are not root)\n\n", 
164
			basename(argv[0]));
164
			argv[0]);
165
		break;
165
		break;
166
	default:
166
	default:
167
			fprintf(stderr, "an unknown error occurred.\n\n");
167
			fprintf(stderr, "an unknown error occurred.\n\n");

Return to bug 235121