View | Details | Raw Unified | Return to bug 207807
Collapse All | Expand All

(-)cddl/compat/opensolaris/misc/fsshare.c (-1 / +1 lines)
Lines 50-56 Link Here
50
	struct pidfh *pfh;
50
	struct pidfh *pfh;
51
	pid_t mountdpid;
51
	pid_t mountdpid;
52
52
53
	pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid);
53
	pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &mountdpid);
54
	if (pfh != NULL) {
54
	if (pfh != NULL) {
55
		/* Mountd is not running. */
55
		/* Mountd is not running. */
56
		pidfile_remove(pfh);
56
		pidfile_remove(pfh);
(-)sbin/mount/mount.c (-1 / +1 lines)
Lines 224-230 Link Here
224
	struct pidfh *pfh;
224
	struct pidfh *pfh;
225
	pid_t mountdpid;
225
	pid_t mountdpid;
226
226
227
	pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid);
227
	pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &mountdpid);
228
	if (pfh != NULL) {
228
	if (pfh != NULL) {
229
		/* Mountd is not running. */
229
		/* Mountd is not running. */
230
		pidfile_remove(pfh);
230
		pidfile_remove(pfh);
(-)usr.sbin/mountd/mountd.c (-1 / +1 lines)
Lines 367-373 Link Here
367
	char **port_list;
367
	char **port_list;
368
368
369
	/* Check that another mountd isn't already running. */
369
	/* Check that another mountd isn't already running. */
370
	pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &otherpid);
370
	pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &otherpid);
371
	if (pfh == NULL) {
371
	if (pfh == NULL) {
372
		if (errno == EEXIST)
372
		if (errno == EEXIST)
373
			errx(1, "mountd already running, pid: %d.", otherpid);
373
			errx(1, "mountd already running, pid: %d.", otherpid);

Return to bug 207807