FreeBSD Bugzilla – Attachment 18064 Details for
Bug 32588
operator should backup vinum vols
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.09 KB, created by
Peter Much
on 2001-12-07 20:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Peter Much
Created:
2001-12-07 20:10:00 UTC
Size:
1.09 KB
patch
obsolete
>*** sbin/vinum/v.c.orig Tue Mar 13 04:04:06 2001 >--- sbin/vinum/v.c Mon Dec 3 21:21:18 2001 >*************** >*** 62,67 **** >--- 62,68 ---- > #include <sys/linker.h> > #include <sys/module.h> > #include <sys/resource.h> >+ #include <grp.h> > > FILE *cf; /* config file handle */ > FILE *history; /* history file */ >*************** >*** 590,595 **** >--- 591,597 ---- > dev_t voldev; > char filename[PATH_MAX]; /* for forming file names */ > int plexno; >+ struct group *operator_group; > > get_volume_info(&vol, volno); > if (vol.state != volume_unallocated) { /* we could have holes in our lists */ >*************** >*** 599,604 **** >--- 601,610 ---- > sprintf(filename, VINUM_DIR "/%s", vol.name); > if (mknod(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IFCHR, voldev) < 0) > fprintf(stderr, "Can't create %s: %s\n", filename, strerror(errno)); >+ else { >+ if((operator_group = getgrnam("operator")) != NULL) >+ chown(filename, -1, operator_group->gr_gid); >+ } > > /* Create /dev/vinum/vol/<myvol> */ > sprintf(filename, VINUM_DIR "/vol/%s", vol.name);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32588
: 18064