Print this page
NEX-6096 Enable compile warnings re. parentheses in smbsrv
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
NEX-4083 Upstream changes from illumos 5917 and 5995
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
SMB-50 User-mode SMB server (fix vnodetopath)
SMB-50 User-mode SMB server
 Includes work by these authors:
 Thomas Keiser <thomas.keiser@nexenta.com>
 Albert Lee <trisk@nexenta.com>
        
*** 133,143 ****
                  (void) pn_set(rpnp, "/");
  
          /*
           * Process the next component of the pathname.
           */
!         if (error = pn_getcomponent(pnp, component)) {
                  goto bad;
          }
  
          /*
           * Handle "..": two special cases.
--- 133,143 ----
                  (void) pn_set(rpnp, "/");
  
          /*
           * Process the next component of the pathname.
           */
!         if ((error = pn_getcomponent(pnp, component)) != 0) {
                  goto bad;
          }
  
          /*
           * Handle "..": two special cases.
*** 305,315 ****
                  if (++nlink > MAXSYMLINKS) {
                          error = ELOOP;
                          goto bad;
                  }
                  pn_alloc(&linkpath);
!                 if (error = pn_getsymlink(cvp, &linkpath, cr)) {
                          pn_free(&linkpath);
                          goto bad;
                  }
  
                  if (pn_pathleft(&linkpath) == 0)
--- 305,315 ----
                  if (++nlink > MAXSYMLINKS) {
                          error = ELOOP;
                          goto bad;
                  }
                  pn_alloc(&linkpath);
!                 if ((error = pn_getsymlink(cvp, &linkpath, cr)) != 0) {
                          pn_free(&linkpath);
                          goto bad;
                  }
  
                  if (pn_pathleft(&linkpath) == 0)