By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2110
Collapse All | Expand All

(-)tdm/kfrontend/kgreeter.cpp.orig (-2 / +8 lines)
Lines 71-77 Link Here
71
#include <fcntl.h>
71
#include <fcntl.h>
72
#include <sys/types.h>
72
#include <sys/types.h>
73
#include <utmp.h>
73
#include <utmp.h>
74
#ifdef HAVE_UTMPX
74
#include <utmpx.h>
75
#include <utmpx.h>
76
#endif
75
77
76
#include <stdio.h>
78
#include <stdio.h>
77
#include <string.h>
79
#include <string.h>
Lines 1295-1306 Link Here
1295
			struct stat buffer;
1297
			struct stat buffer;
1296
			int status;
1298
			int status;
1297
			char *fifo_parent_dir = strdup(FIFO_DIR);
1299
			char *fifo_parent_dir = strdup(FIFO_DIR);
1298
			dirname(fifo_parent_dir);
1300
			fifo_parent_dir = dirname(fifo_parent_dir);
1299
			status = stat(fifo_parent_dir, &buffer);
1301
			status = stat(fifo_parent_dir, &buffer);
1300
			if (status != 0) {
1302
			if (status != 0) {
1301
				mkdir(fifo_parent_dir, 0644);
1303
				mkdir(fifo_parent_dir, 0644);
1302
			}
1304
			}
1303
			free(fifo_parent_dir);
1304
			status = stat(FIFO_DIR, &buffer);
1305
			status = stat(FIFO_DIR, &buffer);
1305
			if (status == 0) {
1306
			if (status == 0) {
1306
				int file_mode = ((buffer.st_mode & S_IRWXU) >> 6) * 100;
1307
				int file_mode = ((buffer.st_mode & S_IRWXU) >> 6) * 100;
Lines 1313-1319 Link Here
1313
					return;
1314
					return;
1314
				}
1315
				}
1315
			}
1316
			}
1317
#ifdef __OpenBSD__
1318
			// FIXME: tdm_greet crashes at FS_SET() below if FIFO_DIR mode is 0600
1319
			mkdir(FIFO_DIR,0700);
1320
#else
1316
			mkdir(FIFO_DIR,0600);
1321
			mkdir(FIFO_DIR,0600);
1322
#endif
1317
			mknod(mPipeFilename.ascii(), S_IFIFO|0600, 0);
1323
			mknod(mPipeFilename.ascii(), S_IFIFO|0600, 0);
1318
			chmod(mPipeFilename.ascii(), 0600);
1324
			chmod(mPipeFilename.ascii(), 0600);
1319
		
1325
		

Return to bug 2110