Searched refs:oldcwd (Results 1 – 4 of 4) sorted by relevance
285 char *oldcwd = NULL; in nsinfo__mountns_enter() local299 oldcwd = get_current_dir_name(); in nsinfo__mountns_enter()300 if (!oldcwd) in nsinfo__mountns_enter()314 nc->oldcwd = oldcwd; in nsinfo__mountns_enter()320 free(oldcwd); in nsinfo__mountns_enter()329 if (nc == NULL || nc->oldns == -1 || nc->newns == -1 || !nc->oldcwd) in nsinfo__mountns_exit()334 if (nc->oldcwd) { in nsinfo__mountns_exit()335 WARN_ON_ONCE(chdir(nc->oldcwd)); in nsinfo__mountns_exit()336 zfree(&nc->oldcwd); in nsinfo__mountns_exit()
46 char *oldcwd; member
190 oldcwd = os.getcwd()192 oldcwd = None200 if cdir == oldcwd:269 if oldcwd and curcwd != oldcwd:272 os.chdir(oldcwd)
1067 oldcwd = os.getcwd()1318 os.chdir(oldcwd)