ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/extfs_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/extfs_beos.cpp (file contents):
Revision 1.2 by cebix, 1999-10-19T21:33:57Z vs.
Revision 1.6 by cebix, 1999-11-01T16:24:14Z

# Line 72 | Line 72 | void extfs_exit(void)
72  
73  
74   /*
75 + *  Add component to path name
76 + */
77 +
78 + void add_path_component(char *path, const char *component)
79 + {
80 +        int l = strlen(path);
81 +        if (l < MAX_PATH_LENGTH-1 && path[l-1] != '/') {
82 +                path[l] = '/';
83 +                path[l+1] = 0;
84 +        }
85 +        strncat(path, component, MAX_PATH_LENGTH-1);
86 + }
87 +
88 +
89 + /*
90   *  Get/set finder type/creator for file specified by full path
91   */
92  
# Line 268 | Line 283 | int open_rfork(const char *path, int fla
283          // Open temporary file for resource fork
284          char rname[L_tmpnam];
285          tmpnam(rname);
286 <        int rfd = open(rname, O_RDWR | O_CREAT | O_TRUNC, 0664);
286 >        int rfd = open(rname, O_RDWR | O_CREAT | O_TRUNC, 0666);
287          if (rfd < 0) {
288                  close(fd);
289                  return -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines