fs_m_out.RES_OFFSET = path_processed; /* For ENOENT */
if ( (new_name = get_name(path+slashes, string)) == (char*) 0) {
put_inode(rip); /* bad path in user space */
-printf("%s, %d\n", __FILE__, __LINE__);
return(NIL_INODE);
}
if (*new_name == '\0' && (action & PATH_PENULTIMATE)) {
/* last file of path prefix is not a directory */
put_inode(rip);
err_code = ENOTDIR;
-printf("%s, %d\n", __FILE__, __LINE__);
return(NIL_INODE);
}
}
if (rip == NIL_INODE) {
if (*new_name == '\0' && (action & PATH_NONSYMBOLIC) != 0)
{
-printf("%s, %d\n", __FILE__, __LINE__);
return(dir_ip);
}
else if (err_code == ENOENT)
sizeof(user_path)) != OK) {
put_inode(dir_ip);
err_code = ENOENT;
-printf("%s, %d\n", __FILE__, __LINE__);
return NIL_INODE;
}
if (++symloop > SYMLOOP) {
put_inode(dir_ip);
err_code = ELOOP;
-printf("%s, %d\n", __FILE__, __LINE__);
return NIL_INODE;
}
/* Either last name reached or symbolic link is opaque */
if ((action & PATH_NONSYMBOLIC) != 0) {
put_inode(rip);
-printf("%s, %d\n", __FILE__, __LINE__);
return(dir_ip);
} else {
put_inode(dir_ip);
panic(file, "strange string lengths", NO_NUM);
}
if(v2 >= v1) return v1;
+#if 0
printf("mfs:%s:%d: truncated %d to %d\n",
file, line, v1, v2);
+#endif
return v2;
}
struct mproc *p_mp;
clock_t t[5];
+#if 0
printf("dumpcore for %d / %s\n", rmp->mp_pid, rmp->mp_name);
+#endif
/* Do not create core files for set uid execution */
if (rmp->mp_realuid != rmp->mp_effuid) return OK;
}
if ((vp->v_mode & I_TYPE) != I_REGULAR) {
-printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
put_vnode(vp);
-printf("return at %s, %d\n", __FILE__, __LINE__);
return ENOEXEC;
}
/* Check access. */
if ((r = forbidden(vp, X_BIT)) != OK)
{
-printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
put_vnode(vp);
-printf("return at %s, %d\n", __FILE__, __LINE__);
return r;
}
if (r != OK)
{
printf("pm_exec: 2nd fetch_name failed\n");
-printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
put_vnode(vp);
-printf("return at %s, %d\n", __FILE__, __LINE__);
return(r); /* strange */
}
r= patch_stack(vp, mbuf, &frame_len);
if (r != OK)
{
printf("pm_exec: exec_newmap failed: %d\n", r);
-printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
put_vnode(vp);
-printf("return at %s, %d\n", __FILE__, __LINE__);
return r;
}
okendpt(proc_e, &proc_s);
free_proc(&fproc[proc_s], FP_EXITING);
- printf("VFSdumpcore: not implemented\n");
return OK;
}
if(*pathrem) {
if (strchr(pathrem, '/') == 0)
r= OK;
+#if 0
else
{
printf("common_open: / in pathrem\n");
}
+#endif
}
}