[CRIU] [PATCH] sk-unix: Don't affect cwd for relative named	sockets
    Cyrill Gorcunov 
    gorcunov at gmail.com
       
    Wed Oct  7 05:02:21 PDT 2015
    
    
  
On Wed, Oct 07, 2015 at 02:54:06PM +0300, Pavel Emelyanov wrote:
> 
> > +static int prep_unix_sk_cwd(struct unix_sk_info *ui, char **prev_cwd)
> >  {
> >  	if (ui->name_dir) {
> > +		*prev_cwd = get_current_dir_name();
> 
> This looks quite fragile. Can we instead open the "." and then
> call fchdir() on it?
Yup. Will do, thanks.
    
    
More information about the CRIU
mailing list