Return-Path: william@bourbon.usc.edu Delivery-Date: Sat Oct 25 17:10:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9Q0AZMl023746 for ; Sat, 25 Oct 2008 17:10:35 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m9Q0L4kt005923 for ; Sat, 25 Oct 2008 17:21:04 -0700 Message-Id: <200810260021.m9Q0L4kt005923@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS 551 Date: Sat, 25 Oct 2008 17:21:04 -0700 From: Bill Cheng SOmeone wrote: > The writeup says the following - > *"HomeDir* - The home directory for this node. If this directory does not > exist, your program should exit. This directory must contain a subdirectory > named files for storing cached and permanent files. If the > filessubdirectory does not exist, your program should create it > programmatically. > " > > My question is , where will be our sv_node.c and other files be stored > before running the program ? Will they be stored in the "final1" folder that > reflects in the HomeDir path ? You should pretend that your sv_node is installed in /usr/bin and another user is running your code from his/her directory and your source code has been deleted. Please do *not* hardcode *any* path! That's a sure way to have your code not working during grading. If you find yourself hardcoding any path, you need to find out how not to do that (you can send e-mail to me)! If you use a static buffer to store a filesystem path, you should make sure it's at least 256 bytes long and don't assume that your buffer is large enough to hope any filesystem path. -- Bill Cheng // bill.cheng@usc.edu