Searched refs:oldcwd (Results 1 – 2 of 2) sorted by relevance
251 char *oldcwd = NULL; in nsinfo__mountns_enter() local265 oldcwd = get_current_dir_name(); in nsinfo__mountns_enter()266 if (!oldcwd) in nsinfo__mountns_enter()280 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()286 free(oldcwd); in nsinfo__mountns_enter()295 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()300 if (nc->oldcwd) { in nsinfo__mountns_exit()301 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()302 zfree(&nc->oldcwd); in nsinfo__mountns_exit()
45 char *oldcwd; member