ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Urlader/urlader.c
(Generate patch)

Comparing Urlader/urlader.c (file contents):
Revision 1.10 by root, Tue Jan 3 10:37:45 2012 UTC vs.
Revision 1.11 by root, Thu Jan 5 06:00:13 2012 UTC

170 if (u_valid (h)) 170 if (u_valid (h))
171 { 171 {
172 u_handle oh = pack_handle; 172 u_handle oh = pack_handle;
173 173
174 pack_handle = h; 174 pack_handle = h;
175 if (!pack_map ()) 175 if (pack_map ())
176 u_setenv ("URLADER_OVERRIDE", "override");
177 else
176 { 178 {
177 pack_handle = oh; 179 pack_handle = oh;
178 oh = h; 180 oh = h;
179 } 181 }
180 182
325 u_fatal ("unable to open executable pack"); 327 u_fatal ("unable to open executable pack");
326 328
327 if (!GetCurrentDirectory (sizeof (currdir), currdir)) 329 if (!GetCurrentDirectory (sizeof (currdir), currdir))
328 strcpy (currdir, "."); 330 strcpy (currdir, ".");
329 331
332 doit ();
333
330 return 0; 334 return 0;
331} 335}
332 336
333#else 337#else
334 338
341 345
342 if (!getcwd (currdir, sizeof (currdir))) 346 if (!getcwd (currdir, sizeof (currdir)))
343 strcpy (currdir, "."); 347 strcpy (currdir, ".");
344 348
345#if 0 349#if 0
350 /* intersperse hostname, for whatever reason */
351
346 if (gethostname (tmppath, sizeof (tmppath))) 352 if (gethostname (tmppath, sizeof (tmppath)))
347 strcpy (tmppath, "default"); 353 strcpy (tmppath, "default");
348 354
349 u_append (datadir, tmppath); 355 u_append (datadir, tmppath);
350#endif 356#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines