#!/bin/bash

# Script to invoke find command and check whether the file passed in is owned by root or ccfw.
# This script is intended for use by the bkprofdata command. It returns 0 if the file is owned
# by ccfw or root and 1 for all other cases

find `dirname $1` -name `basename $1` \( -user root -o -user ccfw \) | awk 'BEGIN{rc=1}{rc=0}END{exit rc}'
