diff options
| -rw-r--r-- | multihome.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/multihome.c b/multihome.c index 8ef736b..d6da415 100644 --- a/multihome.c +++ b/multihome.c @@ -255,9 +255,11 @@ void write_init_script() {      FILE *fp;      // Determine the absolute path of this program -    if (realpath(multihome.entry_point, buf) < 0) { -        perror(multihome.entry_point); -        exit(errno); +    if (multihome.entry_point[0] != '/') { +        if (realpath(multihome.entry_point, buf) < 0) { +            perror(multihome.entry_point); +            exit(errno); +        }      }      // Open init script for writing | 
