Changeset 1017
- Timestamp:
- Apr 28, 2017, 1:52:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/cltinit.vrs
r719 r1017 2 2 3 3 /*:VRX */ 4 _CltInit: 4 _CltInit: 5 5 IF options.!debug == 1 THEN say time()' _CltInit() started' 6 6 IF options.!debug == 1 THEN say ' Checking Samba Client setup...' 7 7 8 /* debuglevel when executing Samba binaries */ 8 /* debuglevel when executing Samba binaries */ 9 9 debuglevel = ' --debuglevel=0' 10 10 … … 23 23 ok = value("UNIXROOT",UnixRoot,'OS2ENVIRONMENT') 24 24 end 25 25 26 26 IF options.!debug == 1 THEN say ' UnixRoot = "'UnixRoot'"' 27 27 … … 43 43 samba.!smbclientexe = "" 44 44 if samba.!smbclientexe = "" then do /* wellknown locations */ 45 WellKnown = sysBootdrive()"\ecs\system\samba;"sysBootdrive()"\samba" 45 Osdir = value("OSDIR",,'OS2ENVIRONMENT') 46 if Osdir <> '' THEN 47 WellKnown = Osdir"\apps\smbclnt;"Osdir"\system\samba;"sysBootdrive()"\samba" 48 else 49 WellKnown = sysBootdrive()"\ecs\system\samba;"sysBootdrive()"\samba" 46 50 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 47 51 if Programs <> "" then WellKnown = Wellknown';'Programs'\samba' … … 184 188 185 189 IF options.!debug == 1 then do 186 if ErrorState then say " One or more basic Samba Client setup errors detected!" 190 if ErrorState then say " One or more basic Samba Client setup errors detected!" 187 191 else say " No basic Samba Client setup errors detected!" 188 192 end … … 201 205 202 206 /*:VRX */ 203 _ErrorBinaryNotFound: 207 _ErrorBinaryNotFound: 204 208 /* Set error status variable and show a short message - incomplete! */ 205 209 msg = arg(1) … … 210 214 211 215 /*:VRX */ 212 _ErrorDataFileNotFound: 216 _ErrorDataFileNotFound: 213 217 /* Set error status variable and show a short message - incomplete! */ 214 218 msg = arg(1) … … 229 233 end 230 234 drop old_path 231 235 232 236 /* Add binary and tools path to the BEGINLIBPATH variable */ 233 237 old_beginlibpath = SysQueryExtLibPath("B") … … 242 246 /* Set LIBPATHSTRICT (this is an option - disabled by default) */ 243 247 /* ok = value('LIBPATHSTRICT','T', 'OS2ENVIRONMENT') */ 244 248 245 249 IF options.!debug == 1 THEN say time()' _SambaExtendSearchPath() done' 246 250 return
Note:
See TracChangeset
for help on using the changeset viewer.