Correct position of string pointer in NFS struct used in killall5/pidof
This commit is contained in:
parent
06972d9a7a
commit
e1a1f90204
@ -121,8 +121,8 @@ typedef struct _s_nfs
|
||||
struct _s_nfs *next; /* Pointer to next struct. */
|
||||
struct _s_nfs *prev; /* Pointer to previous st. */
|
||||
SHADOW *shadow; /* Pointer to shadows */
|
||||
char * name;
|
||||
size_t nlen;
|
||||
char * name;
|
||||
} NFS;
|
||||
|
||||
/* List of processes. */
|
||||
@ -355,7 +355,7 @@ static void clear_mnt(void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if path is ia shadow off a NFS partition.
|
||||
* Check if path is a shadow off a NFS partition.
|
||||
*/
|
||||
static int shadow(SHADOW *restrict this, const char *restrict name, const size_t nlen)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user