more removing of warning and debug messages.
This commit is contained in:
parent
4e0316611a
commit
dc67b37a10
@ -205,7 +205,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
fs_m_out.RES_OFFSET = path_processed; /* For ENOENT */
|
fs_m_out.RES_OFFSET = path_processed; /* For ENOENT */
|
||||||
if ( (new_name = get_name(path+slashes, string)) == (char*) 0) {
|
if ( (new_name = get_name(path+slashes, string)) == (char*) 0) {
|
||||||
put_inode(rip); /* bad path in user space */
|
put_inode(rip); /* bad path in user space */
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return(NIL_INODE);
|
return(NIL_INODE);
|
||||||
}
|
}
|
||||||
if (*new_name == '\0' && (action & PATH_PENULTIMATE)) {
|
if (*new_name == '\0' && (action & PATH_PENULTIMATE)) {
|
||||||
@ -215,7 +214,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
/* last file of path prefix is not a directory */
|
/* last file of path prefix is not a directory */
|
||||||
put_inode(rip);
|
put_inode(rip);
|
||||||
err_code = ENOTDIR;
|
err_code = ENOTDIR;
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return(NIL_INODE);
|
return(NIL_INODE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -234,7 +232,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
if (rip == NIL_INODE) {
|
if (rip == NIL_INODE) {
|
||||||
if (*new_name == '\0' && (action & PATH_NONSYMBOLIC) != 0)
|
if (*new_name == '\0' && (action & PATH_NONSYMBOLIC) != 0)
|
||||||
{
|
{
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return(dir_ip);
|
return(dir_ip);
|
||||||
}
|
}
|
||||||
else if (err_code == ENOENT)
|
else if (err_code == ENOENT)
|
||||||
@ -258,7 +255,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
sizeof(user_path)) != OK) {
|
sizeof(user_path)) != OK) {
|
||||||
put_inode(dir_ip);
|
put_inode(dir_ip);
|
||||||
err_code = ENOENT;
|
err_code = ENOENT;
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return NIL_INODE;
|
return NIL_INODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -266,7 +262,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
if (++symloop > SYMLOOP) {
|
if (++symloop > SYMLOOP) {
|
||||||
put_inode(dir_ip);
|
put_inode(dir_ip);
|
||||||
err_code = ELOOP;
|
err_code = ELOOP;
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return NIL_INODE;
|
return NIL_INODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -299,7 +294,6 @@ printf("%s, %d\n", __FILE__, __LINE__);
|
|||||||
/* Either last name reached or symbolic link is opaque */
|
/* Either last name reached or symbolic link is opaque */
|
||||||
if ((action & PATH_NONSYMBOLIC) != 0) {
|
if ((action & PATH_NONSYMBOLIC) != 0) {
|
||||||
put_inode(rip);
|
put_inode(rip);
|
||||||
printf("%s, %d\n", __FILE__, __LINE__);
|
|
||||||
return(dir_ip);
|
return(dir_ip);
|
||||||
} else {
|
} else {
|
||||||
put_inode(dir_ip);
|
put_inode(dir_ip);
|
||||||
|
@ -98,8 +98,10 @@ int mfs_min_f(char *file, int line, int v1, int v2)
|
|||||||
panic(file, "strange string lengths", NO_NUM);
|
panic(file, "strange string lengths", NO_NUM);
|
||||||
}
|
}
|
||||||
if(v2 >= v1) return v1;
|
if(v2 >= v1) return v1;
|
||||||
|
#if 0
|
||||||
printf("mfs:%s:%d: truncated %d to %d\n",
|
printf("mfs:%s:%d: truncated %d to %d\n",
|
||||||
file, line, v1, v2);
|
file, line, v1, v2);
|
||||||
|
#endif
|
||||||
return v2;
|
return v2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -693,7 +693,9 @@ register struct mproc *rmp; /* whose core is to be dumped */
|
|||||||
struct mproc *p_mp;
|
struct mproc *p_mp;
|
||||||
clock_t t[5];
|
clock_t t[5];
|
||||||
|
|
||||||
|
#if 0
|
||||||
printf("dumpcore for %d / %s\n", rmp->mp_pid, rmp->mp_name);
|
printf("dumpcore for %d / %s\n", rmp->mp_pid, rmp->mp_name);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Do not create core files for set uid execution */
|
/* Do not create core files for set uid execution */
|
||||||
if (rmp->mp_realuid != rmp->mp_effuid) return OK;
|
if (rmp->mp_realuid != rmp->mp_effuid) return OK;
|
||||||
|
@ -148,18 +148,14 @@ printf("return at %s, %d\n", __FILE__, __LINE__);
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((vp->v_mode & I_TYPE) != I_REGULAR) {
|
if ((vp->v_mode & I_TYPE) != I_REGULAR) {
|
||||||
printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
put_vnode(vp);
|
put_vnode(vp);
|
||||||
printf("return at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
return ENOEXEC;
|
return ENOEXEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check access. */
|
/* Check access. */
|
||||||
if ((r = forbidden(vp, X_BIT)) != OK)
|
if ((r = forbidden(vp, X_BIT)) != OK)
|
||||||
{
|
{
|
||||||
printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
put_vnode(vp);
|
put_vnode(vp);
|
||||||
printf("return at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,9 +188,7 @@ printf("return at %s, %d\n", __FILE__, __LINE__);
|
|||||||
if (r != OK)
|
if (r != OK)
|
||||||
{
|
{
|
||||||
printf("pm_exec: 2nd fetch_name failed\n");
|
printf("pm_exec: 2nd fetch_name failed\n");
|
||||||
printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
put_vnode(vp);
|
put_vnode(vp);
|
||||||
printf("return at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
return(r); /* strange */
|
return(r); /* strange */
|
||||||
}
|
}
|
||||||
r= patch_stack(vp, mbuf, &frame_len);
|
r= patch_stack(vp, mbuf, &frame_len);
|
||||||
@ -221,9 +215,7 @@ printf("return at %s, %d\n", __FILE__, __LINE__);
|
|||||||
if (r != OK)
|
if (r != OK)
|
||||||
{
|
{
|
||||||
printf("pm_exec: exec_newmap failed: %d\n", r);
|
printf("pm_exec: exec_newmap failed: %d\n", r);
|
||||||
printf("put_vnode at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
put_vnode(vp);
|
put_vnode(vp);
|
||||||
printf("return at %s, %d\n", __FILE__, __LINE__);
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -594,7 +594,6 @@ struct mem_map *seg_ptr;
|
|||||||
okendpt(proc_e, &proc_s);
|
okendpt(proc_e, &proc_s);
|
||||||
free_proc(&fproc[proc_s], FP_EXITING);
|
free_proc(&fproc[proc_s], FP_EXITING);
|
||||||
|
|
||||||
printf("VFSdumpcore: not implemented\n");
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,10 +151,12 @@ PRIVATE int common_open(register int oflags, mode_t omode)
|
|||||||
if(*pathrem) {
|
if(*pathrem) {
|
||||||
if (strchr(pathrem, '/') == 0)
|
if (strchr(pathrem, '/') == 0)
|
||||||
r= OK;
|
r= OK;
|
||||||
|
#if 0
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("common_open: / in pathrem\n");
|
printf("common_open: / in pathrem\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user