VolWarn.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. /*
  9. This is an Important note about pathnames
  10. */
  11. static char DuplicVolumeNote[] = {
  12. "\rIMPORTANT NOTE:" \
  13. "\r" \
  14. "\r This port has one weak point: It is based on pathnames !! " \
  15. "\r Because it's a port !! Unlike MacOS: As far as I know all other "\
  16. "\r Operatingsystems (eg.: Unix, DOS, OS/2, ...) are based on pathnames" \
  17. "\r " \
  18. /* a short quote from "Inside Macintintosh, Files"; slightly modified by me */
  19. "\r On a Mac: Files and directories located in the same directory " \
  20. "\r must all have unique names. However, there is no requirement " \
  21. "\r that volumes have unique names. It is perfectly acceptable for two mounted" \
  22. "\r volumes to have the same name. This is one reason why a application should " \
  23. "\r use volume reference numbers rather than volume names to specify volumes," \
  24. "\r but for this Zip-Port I can't use reference numbers. " \
  25. "\r " \
  26. /* end quote */
  27. "\r" \
  28. "\r From the developers point of view:"\
  29. "\r The use of pathnames, however, is highly discouraged. If the user changes"\
  30. "\r names or moves things around, they are worthless." \
  31. "\r Full pathnames are particularly unreliable as a means of identifying files," \
  32. "\r directories or volumes within your application," \
  33. "\r for two primary reasons:" \
  34. "\r" \
  35. "\r* The user can change the name of any element in the path at" \
  36. "\r virtually any time." \
  37. "\r* Volume names on the Macintosh are *not* unique. Multiple" \
  38. "\r mounted volumes can have the same name. For this reason, the use of" \
  39. "\r a full pathname to identify a specific volume may not produce the" \
  40. "\r results you expect. If more than one volume has the same name and" \
  41. "\r a full pathname is used, the File Manager currently uses the first" \
  42. "\r mounted volume it finds with a matching name in the volume queue." \
  43. "\r" \
  44. "\r" \
  45. "\r The main reason is that an attempt to implement support exact saving of" \
  46. "\r the MacOS specific internal file-structures would require a throughout" \
  47. "\r rewrite of major parts of shared code, probably sacrifying compatibility" \
  48. "\r with other systems." \
  49. "\r I have no solution at the moment. The port will just warn you if you try" \
  50. "\r zip from / to a volume which has a duplicate name." \
  51. "\r MacZip has problems to find the archives and files." \
  52. "\r" \
  53. "\r" \
  54. "\r ... and the moral of this story:" \
  55. "\r" \
  56. "\r Don't mount multiple volumes with the same " \
  57. "\r name while zip/unzip is running" \
  58. "\r and "\
  59. "\r My (Big) recommendation: Name all your volumes with a unique name "\
  60. "\r (e.g: add a space character to the name) and" \
  61. "\r MacZip will run without any problem." \
  62. "\r" \
  63. "\r" \
  64. "\r Dirk Haase" \
  65. };