rv = NS_NewLocalFile(origFile, getter_AddRefs(file));
rv = NS_NewLocalFile(origFile, PR_FALSE, getter_AddRefs(file));
    nsresult Init(const char* origFile) {        nsresult rv;        nsCOMPtr<nsILocalFile> file;        rv = NS_NewLocalFile(origFile, getter_AddRefs(file));        if (NS_FAILED(rv)) return rv;        char* name;        rv = file->GetLeafName(&name);        if (NS_FAILED(rv)) return rv;        nsCAutoString str(name);        nsMemory::Free(name);        str.Append(".bak");        rv = file->SetLeafName(str);        if (NS_FAILED(rv)) return rv;        rv = NS_NewLocalFileOutputStream(getter_AddRefs(mOut),                                         file,                                          PR_CREATE_FILE | PR_WRONLY | PR_TRUNCATE,                                         0664);        return rv;    }