summaryrefslogtreecommitdiff
path: root/usr/src/cmd/bnu/permission.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/bnu/permission.c')
-rw-r--r--usr/src/cmd/bnu/permission.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/usr/src/cmd/bnu/permission.c b/usr/src/cmd/bnu/permission.c
index e21989b8d5..d8454868a9 100644
--- a/usr/src/cmd/bnu/permission.c
+++ b/usr/src/cmd/bnu/permission.c
@@ -26,6 +26,9 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+/*
+ * Copyright (c) 2016 by Delphix. All rights reserved.
+ */
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -205,7 +208,7 @@ char *name;
* this function will find a login name in the LOGNAME
* field.
* input:
- * name -> who the remote says he/she is
+ * name -> who the remote says they are
* return:
* SUCCESS -> found
* FAIL -> not found
@@ -336,7 +339,7 @@ char *list[];
while (*p && num < maxlist) {
list[num] = p;
if (*p == ':') { /* null path */
- *p++ = NULLCHAR;
+ *p++ = NULLCHAR;
continue;
}
while (*p && *p != ':')
@@ -442,7 +445,7 @@ int type;
continue;
case U_LOGNAME:
- if (EQUALS(arg, name))
+ if (EQUALS(arg, name))
break;
continue;
@@ -481,7 +484,7 @@ static int
validateFind(name)
char *name;
{
-
+
if ( (Fp = fopen(PERMISSIONS, "r")) == NULL) {
DEBUG(5, "can't open %s\n", PERMISSIONS);
return(FAIL);
@@ -554,7 +557,7 @@ char *name;
*
* return:
* 0 - OK
- * EOF - at end of file
+ * EOF - at end of file
*/
int
parse_tokens(flds, buf)
@@ -626,7 +629,7 @@ struct name_value *pair;
string++;
if (*string)
*string++ = NULLCHAR;
-
+
pair->value = string;
while ((*string) && (*string != '\t') && (*string != ' ')
&& (*string != '\n'))
@@ -654,7 +657,7 @@ char *line;
{
char *p, *c;
char buf[BUFSIZ];
-
+
p = line;
for (;fgets(buf, BUFSIZ, fp) != NULL;) {
/* remove trailing white space */
@@ -764,7 +767,7 @@ switchRole()
* rmail
* Note that the PERMISSIONS file is read once for each system
* at the time the Rmtname is set in xprocess().
- * Return codes:
+ * Return codes:
* ok: TRUE
* fail: FALSE
*/
@@ -813,7 +816,7 @@ char *name, *list[];
}
}
if ( _dev[i] == statbuf.st_dev
- && _ino[i] == statbuf.st_ino ) {
+ && _ino[i] == statbuf.st_ino ) {
free(temp);
return(TRUE);
}