Searched refs:oldcwd (Results 1 – 1 of 1) sorted by relevance
284 char *oldcwd = NULL; in nsinfo__mountns_enter() local298 oldcwd = strdup(curpath); in nsinfo__mountns_enter()299 if (!oldcwd) in nsinfo__mountns_enter()313 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()319 free(oldcwd); in nsinfo__mountns_enter()328 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()333 if (nc->oldcwd) { in nsinfo__mountns_exit()334 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()335 zfree(&nc->oldcwd); in nsinfo__mountns_exit()